Convert WMI Creationdate in Format-Table
问题 I'm trying to get all svchost processes from my machine into a nicely formatted table, containing a formatted datetime but so far have failed to do so. This is how I get all the processes into an array $processes = @(gwmi -cl Win32_Process -f "name='svchost.exe'") and following prints the datetime as I'd like it them but as a list $processes | % {$_.Caption, $_.ConvertToDateTime($_.CreationDate)} svchost.exe vrijdag 4 september 2015 20:47:03 svchost.exe vrijdag 4 september 2015 20:47:03