Created
April 24, 2014 10:41
-
-
Save TearTheSky/11249922 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# トランスクリプト(ログ出力)の開始 | |
$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