Start-Transcript Error: Transcription Has Already Started


i have code uses start , stop transcript. everytime run start-transcript  recieve error that reads "transcription has been started. use stop-transcript command stop transcription. have tried suppress error no luck using -erroraction 'silentlycontinue'. using v2.0 , running windows scheduler

start-transcript -path 'c\amscriptlog.txt' -append  #code here  stop-transcript

ideas why throws error?

hi,

i suggest go through below similar thread:

powershell - how check if transcript running?

http://stackoverflow.com/questions/10170237/powershell-how-to-check-if-transcript-is-running

hope helps.

regards,

yan li


cataleya li
technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...