For installing the K1000 agent on different systems as Win XP, Win 7-32 and Win 7-64, I wrote a little VB script which can be modified easily. It is especially designed to run KACE agent deployment on remote locations with a local share for KACE software distribution.
' Install KACE Agent per policy on Win XP, Win 7-64, Win 7-32
On Error resume next ' error handling, just cancel script
programfiles = ""
osversion= ""
osarchitecture = ""
fname= ""
cmdstring= ""
Set WshShell = WScript.CreateObject("Wscript.Shell") ' get environment strings
programfiles = WshShell.ExpandEvironmentStrings("%programfiles%")
Set ObjWMI = getobj("winmgmts:\\.\root\cimv2") ' get os name and version
Set ObjOsList = ObjWMI.instancesOf(("win32_operatingsystem",48)
For each ObjOsDetail in ObjOsList ' extract os name and version
osversion = ObjDetail.Caption
If osversion = "Windows 7 Professional " Then ' catch WIN XP, os architecture not supported - mind space at end of comp string
osarchitecture = ObjDetail.OsArchitecture
If osachitecture = "64-Bit" Then ' different path for x86 programs
programfiles = WshShell.ExpandEvironmentStrings("%programfiles(x86)%")
End If
End If
Next
fname = programfiles & "\Dell\KACE" ' string installation path
Dim Fso
Set Fso = CreateObject("Scripting.FileSystemObject")
If Fso.FolderExists(fname) = false then ' not installed
cmdstring = "msiexec.exe /qn /l*v %windir%\temp\ampmsi.log /i <\\path_to_your_share>\ampagent-5.5.30275-x86.msi host=<name_of_your_k1000-system>
WshShell.Run cmdstring
End If
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.