AuthorizationManager check failed.
At line:1 char:2
+ . <<<< ‘C:\Path\Microsoft.Powershell_profile.ps1’
+ CategoryInfo : NotSpecified: (:) , PSSecurityException
+ FullyQualifiedErrorId : RuntimeException
Here are the steps I took to clear the error in my environment.
– First, check PowerShell to ensure the ExecutionPolicy is not set to “Restricted”.
If it is, set it to either “RemoteSigned” or “Unrestricted” depending upon your security preferences.
If the error continues;
– Check to make sure Windows Management Instrumentation service (WMI) is Enabled and running. If it’s disabled, try enabling it and starting it to see if that clears the error.
– Occasionally, with the ExecutionPolicy set to “RemoteSigned” or “Unrestricted”, this error may occur if the script was downloaded from the internet using Internet Explorer and IE has “blocked” the file. Right-click the file, select “Properties” and click “Unblock”.
– If all else fails, go to the path noted in the error and delete the PowerShell profile file.
If you’d like to really bone up on your Powershell skills, I recommend getting a copy of “Learn Windows Powershell in a Month of Lunches“, by Don Jones and Jeffrey Hicks. It’s specifically geared toward busy IT professionals who don’t have a ton of time to devote, or are pulled in a dozen different directions at once, all while needing to learn something new. (Trust me, I sympathize!) It’s a great resource to keep on hand!
If you found the answer to your problem here, please leave me a quick comment to let me know! You can also find me on Google+.