Tuesday, April 1, 2014

SharePoint 2013/2010 : Export site url , request access email, site owner in to text file using PowerShell Script

 Run the below PS script using admin mode.

 #Pulls site url and request access email and writes out to output.txt

Get-SPSite -Limit ALL | Get-SPWeb -Limit ALL | Format-Table -Wrap -AutoSize -Property url,Owner,SecondaryContact,RequestAccessEmail | Out-String -Width 1000 | Out-File -FilePath SiteDetails.txt

#Pulls site url, owner and secondary owner and writes out to output.txt

Get-SPSite -Limit ALL | Format-Table -Wrap -AutoSize -Property url,Owner,SecondaryContact,RequestAccessEmail | Out-String -Width 1000 | Out-File -FilePath SiteDetails.txt

Article Source



Happy Browsing!
Relax..

No comments:

Post a Comment