1

When attempting to set the credentials on a SharePoint site with the DocuSign feature activated I get the warning:

"WARNING: More results were found in Get-SPSite but were not returned. Use 'Limit -ALL' to return all possible results."

The regex match will only iterate through 20 objects at a time, and I have around 60 sites. Where should I add "-Limit ALL' in the PowerShell so that it sill iterate through all my sites instead of just the top alphabetical 20?

Get-SPSite | ForEach-Object {
           if ( [RegEx]::IsMatch($_.Url, $regEx) ) {
              $url = $_.Url
              write-host "   $url"
           }
        }
tunacode
  • 65
  • 1
  • 8

2 Answers2

2

You would add it to the Get-SPSite command, just like the error states.

Get-SPSite -Limit ALL | ForEach-Object {
TheMadTechnician
  • 34,906
  • 3
  • 42
  • 56
2

The -Limit ALL parameter belongs with the Get-SPSite cmdlet:

Get-SPSite -Limit ALL | ForEach-Object {
  ... iterate over each site ...
}

Reference: http://technet.microsoft.com/en-us/library/ff607950.aspx

Goyuix
  • 23,614
  • 14
  • 84
  • 128