Get-SPWeb : Access to this Web site has been blocked.

If you are using PowerShell to enumerate SPSite or SPWeb objects in your farm, you may have encountered an “Access to this Web site has been blocked” error message, similar to this example: Get-SPWeb : Access to this Web site has been blocked. Please contact the administrator to resolve this problem. At line:1 char:61 +…

0

How to Update the SequenceNumber on an SPEventReceiver via PowerShell

The following will demonstrate how to update the SequenceNumber on an SPEventReceiver via Windows PowerShell. First, we need to get a reference to the SPList that has our SPEventReceiver registered on it, which can be done with the following PowerShell sample: PS C:\> $web = Get-SPWeb http://sharepoint2010 PS C:\> $list = $web.Lists["Shared Documents"] We now…

1