【Powershell】Start-Transcriptでログ取得

Linuxのscriptコマンド的なものがPowershellにもあるんだね。
ログ取りスタート
1 2 |
$time = Get-Date -Format "yyyyMMdd-HHmm" Start-Transcript -Path "C:\Users\yuta\$time.log" |
ログ取り終了
1 |
Stop-Transcript |
取得したログはこんな感じに