You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rem This file should be called by a GPO with three parameters:
rem SITE_CODE
rem DOMAIN_NAME or AUTO
rem eg. 100 ORCHID
setSITE_CODE=%1%
setDOMAIN=%2%
rem Change the name of the source if required
setEVENT_SOURCE=N-central agent installer
rem If you've changed the strAgentFolder variable in the VBS file, change this line as well
setAGENT_FOLDER=Agent
rem If the domain name is set as AUTO, we can now automatically detect it
if"%DOMAIN%"=="AUTO" ( wmic computersystem get domain |findstr /i . >%TEMP%\IA_dom.txt
for /f "tokens=*"%%din (%TEMP%\IA_dom.txt) doSETDOMAIN=%%d )
color 1f &&cls
title :: %EVENT_SOURCE% ::
ifNOTEXIST \\%DOMAIN%\netlogon\%AGENT_FOLDER%\installagent.vbs ( eventcreate /L APPLICATION /T ERROR /ID 998 /SO "%EVENT_SOURCE%" /D "The InstallAgent.vbs could not be reached on the network."1>nul2>nul
if%IAEXITCODE%NEQ10eventcreate /L APPLICATION /SO "%EVENT_SOURCE%" /ID 998 /D "The %EVENT_SOURCE% script exited unexpectedly on this device. This may be causing the agent to not install or upgrade properly. The exit code was %IAEXITCODE%." /T ERROR 1>nul2>nul