Forum Discussion
Error running CreateSRSMedia.ps1 - Microsoft Teams Rooms USB image creation
- Dec 04, 2019
I finally figured it out. I have a profile.ps1 in my WindowsPowerShell directory in my documents folder. I didn't use it anymore, but had a "Write-Host" line in there, which I didn't comment out from when I did.
I was able to replicate it by deleting the contents of profile.ps1 and putting write-host "Test" in the file. Launching powershell then gives the error. If I delete it or delete the contents of profile.ps1 so there is no write-host entries, it works fine. Write-Output also gives the error when launching this script.
I tried a few other commands, such as changing directories, and it worked fine, but write-host or write-output in the profile.ps1 broke the script.
there should be a transcript.
For me this is in my documents folder.
May be this file helps.
Regards,
Paul
- Richard EklundDec 03, 2019Brass Contributor
paul-lange Thanks for the reply.
Unfortunately, in the transcript, all it says after the usual "start transcript" information (computer information, PSVersion, etc.) all it says is:
Host OS version 10.0.18362.476
Script version 1.5.0
Found CreateSRSMedia already downloaded.
Validating signature for update.ps1...
success.
End transcript.
😞
- paul-langeDec 03, 2019Iron ContributorLooks like it fails after "Test-Signature $UpdatedScript"
Can you try to delete the files and folders that were downloaded in C:\MTR\CreateSRSMedia.ps1 and try it again?
Or you could copy the script to c:\temp and try it again from there.- Richard EklundDec 03, 2019Brass Contributor
paul-lange I appreciate your assistance. I created a new C:\temp directory and copied the CreateSRSMedia.ps1 script over so it was the only file in that directory. I executed the script with the same results. 😞