Δ Thursday, July 18th, 2013 Δ How to install Zenworks Silently How to install the zenworks software silently [download resource files] Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Popup "Installing ZenWorks, please wait", 60, "Please Wait..", 64 WshShell.Run "X:\myfolder\Novell\Zenworks\10.2.2\PreAgentPkg_AgentComplete.exe -x -q", 0, True WScript.Sleep 120000 ‘ 120 seconds While CheckProcess("ZENPreAgent.exe") = True ‘ Installation still running, waiting x seconds WScript.Sleep 5000 Wend WshShell.Popup "Installation completed – machine should be restarted.", 60, "Please restart computer", 64 Function CheckProcess(ByVal strName) ‘ Monitor Threads CheckProcess = False Set objDictionary = CreateObject("Scripting.Dictionary") strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcesses = objWMIService.ExecQuery("Select * from Win32_Process") For each objProcess in colProcesses objDictionary.Add objProcess.ProcessID, objProcess.Name Next Set colThreads = objWMIService.ExecQuery _ ("Select * from Win32_Thread") For each objThread in colThreads intProcessID = Int(objThread.ProcessHandle) strProcessName = objDictionary.Item(intProcessID) If UCase(strProcessName) = UCase(strName) Then CheckProcess = True End If Next End Function Δ [email me]