I want to know what are all the fields available inside WorkerProcess table
reason is: I want to query the worker process id and worker process name.
This is very important for me. Any way for me retrieve the data?
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
Set oW3WPs = oWebAdmin.ExecQuery( "SELECT * FROM WorkerProcess" )
For Each oW3WP In oW3WPs
oW3WP.GetExecutingRequests arrReqs
For Each oRequest In arrReqs
WScript.Echo "--start--"
WScript.Echo "process id: " + oRequest.ProcessID
WScript.Echo "process name: " + oRequest.ProcessName
Next
Next