Skip to content

Instantly share code, notes, and snippets.

@TearTheSky
Created April 24, 2014 10:41
Show Gist options
  • Save TearTheSky/11249922 to your computer and use it in GitHub Desktop.
Save TearTheSky/11249922 to your computer and use it in GitHub Desktop.
# トランスクリプト(ログ出力)の開始
$yourLogfilePrefix = 'ログファイルにつけたい名前'
try {
Stop-Transcript
}
catch{
Write-Output '既に実行されているトランスクリプトはありません。問題ありません。'
}
Start-Transcript -Path ( (split-path $MyInvocation.MyCommand.Path) + "\" + $yourLogfilePrefix + $tennant + "_" +(get-date -Format "yyyyMMddhhmmss") + ".log")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment