0

Is there a way to extract all the Site Collection properties to a file using SharePoint Management Shell

2

There is no easy way unless you find some utility function where you pass an object which will use Reflection to extract all properties

Good old way is to

Get-SPSite 'http://sitecollectionurl'

That can give you an SPSite Object. Now you can choose the properties of your interest and put it into a text file using

Out-File 'FileName.Txt' - Append

Final command will be like

Get-SPSite http://yourserver/sites/yoursite | Select Url, Owner | Out-File -FilePath c:\site.txt -append

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.