Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Modifying the SSN field read by the agent.

I'm a new OCS user. I'm looking for information on how to change the data sent by the OCSInventory Agent for Windows to the server. Specifically, I'm looking for information on changing the SSN value. I tried to do this through the Plugin directory and the PS script, defining only one value for the BIOS group. This resulted in no values being sent for this group; its data is blank.

Is it possible to modify the values read by the Agent before sending them to the server? If so, how should I do this correctly?
in OCS Inventory NG agent for Windows by (120 points)

3 Answers

0 votes

Hi,

If you need to change the value for inventory or asset management reasons, there are a few safer options:

Create a custom field and send the modified value through a plugin script.

Modify the value on the server side after the inventory is received (for example with database rules or post-processing snake game scripts).

Use the registry inventory feature of the agent to send a custom identifier that replaces the serial number in your asset workflow.

by (140 points)
0 votes

Create plugins to do this.

Click Here's my free OCS course. https://www.youtube.com/watch?v=7TZusmn_xHc&list=PL3bg0UWF3RTtAql0hZjFXok-Vei8AjejU

by (620 points)
0 votes

As far as I know, the Windows agent collects hardware information such as the BIOS serial number directly during inventory generation. The plugin system is better suited for adding custom data rather than modifying existing inventory fields before they are sent.

If your goal is to change the SSN value reported to the server, you may need to modify the agent source code or use a custom inventory extension rather than overriding the BIOS section through a PowerShell plugin. The fact that the BIOS group became blank suggests the plugin replaced the section instead of modifying the existing value.

Which agent version are you using? That might help narrow down the available sports games options.

ago by (140 points)
 
Powered by Question2Answer
...