Exclusively for TechExams members for Infosec Boot Camps starting before April 30, 2026
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process") For Each objProcess in colProcessList colProperties = objProcess.GetOwner(strNameOfUser,strUserDomain) Wscript.Echo "Process " & objProcess.Name & " is owned by " _ & strUserDomain & "\" & strNameOfUser & "." Next
JLL wrote: Shouldn't the script identify services instead of processes? I would like an output file that would list the exact name of the service so I can go directly to the server and locate it.
Exclusively for TechExam members. Applies to boot camps starting before April 30, 2026.