Wednesday, June 5, 2013

Documenting SharePoint Web Application Properties

There may come a time when you need to document all the settings for a current web application.  This may be for scripting out new web apps, manually creating new web apps, or you just want to verify some settings without digging all over the place in Central Administration.

Luckily with a little PowerShell you can easily spit out all of web application properties.
Get-SPWebApplication http://sp2010 | Select *


Here is the output:


Pretty cool, all our properties are right here, no need to go into Central Administration and poke around, sweet!  We can take this a little further and output the properties to a text file.

Get-SPWebApplication http://sp2010 | Select * | Out-File c:\web-app-settings.txt


Here is the ouput:


Now that we are sending the output to a text file, nothing is shown in the window.  However, looking at the C: we now have a new text file:


Opening that file, we can see all of our web application settings have been saved off for us:


And that's it!  You now have a text file with all your web application settings for review or for future scripts.

Enjoy!

1 comment:

  1. SQIAR (http://www.sqiar.com) is a leading Business Intelligence company and provides Tableau Software consultancy across United Kingdom,USA,Canada,Australia

    ReplyDelete