New answers tagged access-denied
You can try disabling loopback check as explained in the KB - https://support.microsoft.com/en-us/kb/896861 Method 1: Specify host names (Preferred method if NTLM authentication is desired) To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow these steps: Set the DisableStrictNameChecking ...
You have to add your Farm admin Account into the Policy Web App and then try to run your script. Sometime unique permission cause this issue but if Farm admin account is in policy for web app with full control then it will work.
Top 50 recent answers are included