AuthorizationManager check failed when starting PowerShell

When Launching a PowerShell script I noticed the following error: “AuthorizationManager check failed.

AuthorizationManager check failed.| At line:1 char:2 | Microsoft.PowerShell_profile.ps1'

This happens because either the Current User or the All Users PowerShell profile is empty.

Solution is to either delete the file (by default it’s not present) or fill it with at least one line of code.

The path to the Current User profile is located in %UserProfile%\My Documents\WindowsPowerShell\profile.ps1.

The path to the All Users profile is located in %windir%\system32\WindowsPowerShell\v1.0\profile.ps1.

See also: Windows PowerShell Profiles

Was once an enthusiastic PepperByte employee but is now working elsewhere. His blogs are still valuable to us and we hope to you too.