Open a command prompt with "run as administrator". Search for a file named set-executionpolicy. If you find one, delete it. (Or rename it if you want to be extra safe.)
dir c:\users\set-executionpolicy /b /s
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
General Notes
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"):
Open a command prompt with "run as administrator". Search for a file named set-executionpolicy. If you find one, delete it. (Or rename it if you want to be extra safe.)
dir c:\users\set-executionpolicy /b /s