Deploying from CLI

Reading Time: < 1 minute

Here are other methods to deploy the agent from CLI, they can be used with GPO for example.

1 – Install silently on all computers using the domain administrator credentials:

psexec \\* -s -u Domain\Administrator -p Password \\Server\NetLogon\OCS-NG-Windows-Agent-Setup.exe /S /NOSPLASH /NO_SYSTRAY /SSL=0 /NOW /SERVER=https://1.2.3.4/ocsinventory
Note PsExec free utility available from this site. 1.2.3.4 corresponds to the IP address of the BLESK server.

2 – Install silently on specific computers (ALL.TXT is a text file that lists target computer names, one per line), using domain administrator credentials:

psexec @ALL.TXT -s -u Domain\Administrator -p Password \\Server\NetLogon\OCS-NG-Windows-Agent-Setup.exe /S /NOSPLASH /NO_SYSTRAY /SSL=0 /NOW /SERVER=https://1.2.3.4/ocsinventory
Note PsExec free utility available from this site. 1.2.3.4 corresponds to the IP address of the BLESK server.

wpadmin
Author: wpadmin