Impersonation throws FileNotFoundException with WindowsIdentity in Powershell Impersonation throws FileNotFoundException with WindowsIdentity in Powershell powershell powershell

Impersonation throws FileNotFoundException with WindowsIdentity in Powershell


The user you are impersonating into may not have enough permissions to access the necessary powershell files in the GAC.

As a quick shot try to give the user (you are impersonating into) local admin rights to see if it works then. It this works, revoke local admin rights and add file permissions as needed.