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.

How to run the OCSInventory.exe from GPO without installing the OCSAgent?

I want wo run only the OCSInventory.exe on a windows machine from the GPO. If the computer ist started, one inventory run will be executed and collect the data to the OCS server.

If i use the option /GPO the OCSLogon.exe will download and execute the OCSAgent.exe. If i rename the OCS-NG-Windows-Agent-Setup.exe to OCSAgent.exe, the setup is executed and install the agent.

--- snip ---
Downloading file <http://<server>/ocsinventory/deploy/OCS-NG-Windows-Agent-Setup.exe> without server authentication.../GPO used
Trying to download from <\\<domain>\SysVol\ms15.virtual-office.de\Policies\{<gpo>}\Machine\Scripts\Startup\ocsagent.exe>...OK (C:\WINDOWS\TEMP\OCS-NG_Agent_Setup.exe)
Starting OCS Inventory NG Agent installer...OK (exit code is 0)
Windows automatically starts OCS Inventory NG Service, no need to launch Agent.
All done, exiting ;-)
--- snip ---

But i don't want to install the agent. What must i do to execute the agent without installing?

I've try to copy the installed files included OCSInventory to the group policy directory and rename it as OCSAgent. But this doesn't work. Nothing is send to the OCS server.

--- snip ---
Downloading file <http://<server>/ocsinventory/deploy/OCS-NG-Windows-Agent-Setup.exe> without server authentication.../GPO used
Trying to download from <\\<domain>\SysVol\ms15.virtual-office.de\Policies\{<gpo>}\Machine\Scripts\Startup\ocsagent.exe>...OK (C:\WINDOWS\TEMP\OCS-NG_Agent_Setup.exe)
Starting OCS Inventory NG Agent installer...OK (exit code is \\<domain>\SysVol\ms15.virtual-office.de\Policies\{<gpo>}\Machine\Scripts\Startup\ocsagent.exe)
Windows does not automatically start OCS Inventory NG Service, so starting Agent <C:\WINDOWS\TEMP\ocs-ng\Ocsinventory.exe>...OK (exit code is \\<domain>\SysVol\ms15.virtual-office.de\Policies\{<gpo>}\Machine\Scripts\Startup\ocsagent.exe)
All done, exiting ;-)
--- snip ---

But i see the message "Windows does not automatically start OCS Inventory NG Service, so starting Agent <C:\WINDOWS\TEMP\ocs-ng\Ocsinventory.exe>", that is what i want. But how i can distribute the needed Ocsinventory.exe to the temp directory?

Can anyone help me?

Martin

in OCS Inventory NG agent for Windows by (140 points)

1 Answer

0 votes
Hi,

Use /local option which generates a .ocs file in a named directory. Example: ocsinventory.exe /local=c:\temp, then get .ocs file and inject it manually into ocs server.

Regards

Frank
by (90.4k points)
 
Powered by Question2Answer
...