'Manage Engine Desktopcentral Agent . 'Warning :::::::::::::::::::::::::: '=================================== ' ' The Script should be used after taking image , to resume agents will not communicate to the server . 'Script to Configure ManageEngine Desktop Central Agent from Imaged Computer '============================================================================ On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") checkOSArch = WshShell.RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE") 'Wscript.Echo checkOSArch if Err Then Err.Clear 'WScript.Echo "The OS Architecture is unable to find ,so it was assumed to be 32 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\AdventNet\DesktopCentral\DCAgent\ServerInfo\" else if checkOSArch = "x86" Then 'Wscript.Echo "The OS Architecture is 32 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\AdventNet\DesktopCentral\DCAgent\" else 'Wscript.Echo "The OS Architecture is 64 bit" regkey = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AdventNet\DesktopCentral\DCAgent\" End IF End If WshShell.RegDelete regkey&"ImagedComputer" WshShell.RegDelete regkey&"SystemDetails\" '******************************************************************************************************