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.

OCS Inventory AG Agent dumping inventary-informations through command line

Hello,

if I click the tray icon and click show inventory-information that works and that's good so far. I'd like however a commannd line / parameter switch to write these informations into a file but can't find anything. How to do this?

Edit: Ok, OCSInventory.exe /local="C:\" works but it creates a .ocs file. If I try OCSInventory.exe /xml="C:\" no file is generated. What am I doing wrong?
in OCS Inventory NG agent for Windows by (450 points)
edited by

13 Answers

0 votes
Thanks for the info :)
by (450 points)
0 votes
Hello again,

now I have the problem that after I downloaded https://github.com/OCSInventory-NG/WindowsAgent/releases/download/2.1.1.3/OCSNG-Windows-Agent-2.1.1.3.zip (basically same required .zip but the version is different) from https://github.com/OCSInventory-NG/WindowsAgent/releases, the installed folder is empty :\

Same with 2.3.0.0 which worked when I installed in for the first time, so the downloaded installers can't be the reason really. I can't find any running processes either which might block the setup somehow?

Somehow the seup pricess deletes the installed folder when it finishes the setup at the end and the files disapear.

Alright, I solved the extracting by using 7zip to extract the OCS-NG-Windows-Agent-Setup.exe.
by (450 points)
edited by
0 votes
Thanks MiB, when I only use /xml=. no .xml file is created, but when I use /xml=. /local=. or /xml=c:\ /local=c:\, it both works and the .xml and .ocs files are created within 15 seconds :) So it seems both parameters are required and v2.3.0.0 work too.

I still have a problem with the setup not working anymore (I uninstalled v2.3.0.0 through windows programs uninstaller) and I have to use 7zip to extract the contents, but that would be a different question.
by (450 points)
edited by
 
Powered by Question2Answer
...