|
|
Browse by Tags
All Tags » wmi » REPL » Admin Development Method
-
And another Hey, Scripting Guy ! translation to powerShell How Can I Get the Uptime of a Service?
The PowerShell translation :
$s = gwmi win32_service -filter ''name = 'spooler'''
''{0}'' -f ((get-date) - ([wmi]'').ConvertToDateTime((gwmi Win32_Process -filter ''ProcessID = '$($s.ProcessId)''').CreationDate))
I do output the Uptime in ...
|
|
|