- changed status to open
AuthorizationManager check failed
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)
-
-
Are you running scripts from a network share? Is such case you need to add it to the trusted zone:
- https://devblogs.microsoft.com/scripting/how-to-run-powershell-scripts-from-a-shared-directory/
- https://stackoverflow.com/questions/29242447/executing-powershell-on-remove-server-fails-when-path-to-script-is-fully-qualifi
Also if scripts are downloaded from untrusted sources they need to be unblocked first:
or change group policies ti do not track zone information:
-
- changed status to on hold
-
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.
-
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.
-
- changed status to resolved
- Log in to comment