'Manage Engine Desktopcentral Agent . 'Script to Configure ManageEngine Desktop Central Agent - Server Communication Settings . '======================================================================================= On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") 'Needs five arguments if WScript.Arguments.Count = 5 Then serverName = WScript.Arguments.Item(0) ' servername ipaddress = WScript.Arguments.Item(1) ' server ip address serverHttpPort = WScript.Arguments.Item(2) ' http port number serverHttpsPort = WScript.Arguments.Item(3) ' https port number serverProtocol = WScript.Arguments.Item(4) ' protocol (http/https) WshShell.RegWrite "HKLM\Software\AdventNet\DesktopCentral\DCAgent\DCServerName",serverName WshShell.RegWrite "HKLM\Software\AdventNet\DesktopCentral\DCAgent\DCServerIPAddress",ipaddress WshShell.RegWrite "HKLM\Software\AdventNet\DesktopCentral\DCAgent\DCLastAccessName",ipaddress WshShell.RegWrite "HKLM\Software\AdventNet\DesktopCentral\DCAgent\DCServerPort",serverHttpPort WshShell.RegWrite "HKLM\Software\AdventNet\DesktopCentral\DCAgent\DCServerSecurePort",serverHttpsPort WshShell.RegWrite "HKLM\Software\AdventNet\DesktopCentral\DCAgent\DCServerProtocol",serverProtocol End if '******************************************************************************************************