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

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

How to install ocsagent with a gpo logon script

Hi guys,

I need to inventory 1300 pc on my network! So I need to install by GPO. I read a lot of issues about but nothing is working, inclunde the psexec method. I have made a vbs script, that works, but the user need to press "next" button and it isn't good. Look to my simple batch script:

title *** INSTALACAO ***

START \\server\share\ocspackage.msi 


Then, I tryed a .vbs script, but the same thing happen without success:

On error resume next 
Dim WshShell, fso 
Set WshShell = WScript.CreateObject("WScript.Shell") 
Set fso = CreateObject("Scripting.FileSystemObject") 

WshShell.Run ("msiexec.exe /I ""\\server\share\ocspackage.msi  ""  NETWORKTYPE=1 /qb!")

WScript.Sleep 100


I really need a help here guys! Best regards

in Package deployment by (490 points)

2 Answers

0 votes

You have to use a computer gpo to install the ocs agent.


by (88.5k points)
0 votes
@frankb, are you mean a Computer Policy Gpo? I am already trying to put this script in a GPO Start Script.
by (490 points)
edited by
Powered by Question2Answer