Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. get-spsite -limit all -WebApplication http://yourWebapplicationUrl | Out-File -FilePath "C:UsersYourUserNameDocumentsspSites.txt"
  2.  
  3. Add-PSSnapin "Microsoft.SharePoint.PowerShell"
  4. Get-SPWebApplication http://yourwebapp.com | Get-SPSite | Select ID, Url | Out-File -FilePath "D:spSites.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement