ThePowerShellGuy.com

Did you do your PowerShelling today ?
Welcome to ThePowerShellGuy.com Sign in | Join | Help
in Search

Browse by Tags

All Tags » wmi » REPL » Admin Development Method
  • Hey, PowerShell Guy ! How Can I Get the Uptime of a Service?

    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 ...
    Posted to The PowerShell Guy (Weblog) by admin on March 1, 2007
Powered by Community Server (Personal Edition), by Telligent Systems