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.8 available

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

How to get the version of the installed agent [closed]


I want to write a VBS Script to install the agent on the clients with a computer-startup script.

But I want only execute the agent-installer if a older version of the agent is installed. I don't want run the installer.exe at every time the computer is booting.

Can I read a registry key where the installed agent version?


closed with the note: Solved
in OCS Inventory NG agent for Windows by (190 points)
closed by

2 Answers

0 votes
Best answer

try this from cmd

wmic datafile where name="C:\\Program Files (x86)\\OCS Inventory Agent\\OCSInventory.exe" get version



or use the registry

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\OCS Inventory NG Agent\DisplayVersion"

version 2.4.0 has this key

Kind regards

by (15k points)
selected by
0 votes
Great! Thanks!

Your solution did the trick!
by (190 points)
Powered by Question2Answer