Windows PowerShellの実行結果を「画面」と「ログ」に同時出力する方法4選
PowerShellスクリプトの実行結果をターミナルに表示しつつ、同時にログファイルへ保存する方法を4つ解説します。Tee-Object、Start-Transcript、リダイレクト(*>&1)、自作Write-Log関数の使い分けと、初心者がハマりやすいポイントもまとめました。
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows
Windows