So I did a dumb and ran the below script as is in PowerShell
PowerShell > Set-ExecutionPolicy Unrestricted
I wasn't paying attention and did not remove the
PowerShell > portion of the command.
Now every command I run prints the output to file.
Every file contains the exact same error.
I am for the life of me unable to revert this fubar error I made.
Any assistance would be greatly appreciated.
- This only happens when I run PowerShell as admin
- Running PowerShell normally executes the command as expected
PS C:\Users\myuser> Set-ExecutionPolicy Unrestricted
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):