|
|
Browse by Tags
All Tags » PowerShell » Admin Developme... » DateTime
-
The Chat did go on while I made Last blog entry PowerShell : the power of REPL, -WhatIf and ScriptBlocks as Parameter when moving files :
[22:29] <generalhan> ok now time to work on something a bit harder ! ...[22:29] <generalhan> i have to move files based on date now too !
[22:31] <generalhan> so i have a ...
-
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 ...
|
|
|