Wednesday, August 29, 2018

Get-SPWeb can't find the site you were looking for

Error:
PS C:\Windows\system32> Get-SPWeb -Identity "https://mysite.com/docs/"
Get-SPWeb : Cannot find an SPSite object that contains the following Id or Url: https://mysite.com/docs/.

Fix:
In the Front-End machine(s) restart the application pool "SecurityTokenServiceApplicationPool".

No comments:

Post a Comment