When trying to run powershell script, i get 401 unauthorized
401 unauthorized
  • Edited by -TR 13 hours 54 minutes ago
June 17th, 2015 7:11pm

Hmmm, my organization has been facing this issue for a week or so. 

it looks like it might be a permission thing. Microsoft got back to us and told us to use -usedefaultcredentials but that didn't fix the issue. 
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 1:35pm

Hi

yes, start Powershell under an admin account ( Runas )

June 23rd, 2015 3:46pm

HI,please ensure the below tasks have done comepleted.

  1. Ensure to run power shell as admin
  2. ensure the account that run power shell is having proper set of permissions in SQL

Please check the links below that explains the solutions of the issue.

http://expertsharepoint.blogspot.de/2014/03/the-local-farm-is-not-accessible.html

http://expertsharepoint.blogspot.de/2014/02/you-need-to-have-machine-administrator.html

Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 11:21pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics