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 usedTrying 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 usedTrying 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