syg_hira's tech memo

windows server関連のTipsのおぼえがき

get displayname, name, status, startupmode(startup type) and 'log on as' of windows services (Updated)

Get-Service | sort-object DisplayName |ForEach-Object -Process{$Filter="Name='$($_.Name)'";$Service=(Get-WmiObject Win32_Service -filter $Filter);$("$($Service.DisplayName)`t$($Service.Name)`t$($_.Status)`t$($Service.StartMode)`t$($Service.StartName)")}

This script write tab separated format.