AuthorizationManager check failed

Issue #35 resolved
Former user created an issue

We are seeing ' FullyQualifiedErrorId : UnauthorizedAccess' error when powershell starts.It occurs occasionally , no pattern recognized.

Starting PowerShell as user:ABC\ XYZ .. .. . : AuthorizationManager check failed. At line:1 char:30 + CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : UnauthorizedAccess

Are you aware of such an error or causes of it ?

Comments (6)

  1. Sergey Podobry

    Are you running scripts from a network share? Is such case you need to add it to the trusted zone:

    Also if scripts are downloaded from untrusted sources they need to be unblocked first:

    or change group policies ti do not track zone information:

  2. Former user Account Deleted

    The script is executed from a cloned repo/folder locally on a windows bamboo agent/server. The error does not occur every time it runs.

  3. Sergey Podobry

    We changed execution policy to bypass to override AuthorizationManager checks. Please update PowerShell Task to 1.2.7 and try it. The issue should be gone.

  4. Log in to comment