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

ECHO OFF
title *** INSTALACAO ***


START \\server\share\ocspackage.msi 


EXIT 

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



Wscript.Quit

I really need a help here guys! Best regards

in Package deployment by (490 points)

2 Answers

0 votes
Hi,

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

Regards

Frank
by (90.4k 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
...