Create a Blueprint of your
SharePoint Farm using PowerShell
Corey Burke
Principal Architect – Rackspace Hosting
About Me
•
•
•
•

Architect, trainer, speaker and Manager of the SharePoint Hosting Services team at Rackspace: The
Open C...
About Rackspace
•

•

•

The largest collective
team of SharePoint
MVPs.

• Over 1,000,000 dedicated
seats.

The largest c...
Agenda
•
•
•
•
•
•

PowerShell & XML
Creating an XML structure
Mining SharePoint for configuration data
Reading & Writing ...
Why XML?
•
•
•
•
•

Natively supported by PowerShell and .NET
Lightweight/Portable
Easy to update by hand
Relational (Hier...
Priming PowerShell for .NET
• Loading SharePoint Assemblies
• 2007

• 2010/2013
Instantiating Objects
• 2007
• 2010/2013
Going Deeper into PS Objects
• Two most important CMDLets in PowerShell
– Get-Help
– Get-Member
Writing XML
•
•
•
•
•

Create the XML variable
Query your desired data
Select the XML Node where you want to insert data
C...
Creating the XML object
Get the local Farm object
Saving the XML to a file
Reading XML from a File
Get Web App Data
Finding Data in XML
Searching XML with XPath
Get Alternate Access Mappings
Get Content Database Data
Get Service App Data
Display Web App Config Data
Display Databases for Web App
Putting it all together
http://spaudit.codeplex.com
Where can you go from here?
• Incorporate the XML output into an automated
install script (AutoSPInstaller?)
• Use the XML...
Summary
• We covered
–
–
–
–

Gathering useful information from SharePoint
Storing that information in XML
Retrieving Info...
Upcoming SlideShare
Loading in...5
×

Create a blueprint of your Farm using PowerShell with Corey Burke

242

Published on

In this webinar we will discuss using PowerShell to extract configuration information from SharePoint to store in XML to include reading and writing XML and some example use cases.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
242
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Create a blueprint of your Farm using PowerShell with Corey Burke

  1. 1. Create a Blueprint of your SharePoint Farm using PowerShell Corey Burke Principal Architect – Rackspace Hosting
  2. 2. About Me • • • • Architect, trainer, speaker and Manager of the SharePoint Hosting Services team at Rackspace: The Open Cloud Company in the UK Contributing author - Professional SharePoint 2013 Administration Technical Editor - Beginning SharePoint 2013: Building Business Solutions Contact Me: • Email • • Blog • • http://blog.sharepoint-voodoo.net Twitter • • Corey.Burke@rackspace.co.uk http://twitter.com/cburke007 Find me on LinkedIn • http://uk.linkedin.com/in/cburke007/
  3. 3. About Rackspace • • • The largest collective team of SharePoint MVPs. • Over 1,000,000 dedicated seats. The largest collection of published SharePoint authors. The most published SharePoint books. (23 and counting) • The most 'Microsoft Hosting Partner of the Year' awards (4) • The only company with Fanatical Support® (As stated by Microsoft at the 'Worldwide Hosting Summit', May 23rd, 2013.) 3
  4. 4. Agenda • • • • • • PowerShell & XML Creating an XML structure Mining SharePoint for configuration data Reading & Writing XML Mining the output XML for data Usage scenarios
  5. 5. Why XML? • • • • • Natively supported by PowerShell and .NET Lightweight/Portable Easy to update by hand Relational (Hierarchically) Widely compatible
  6. 6. Priming PowerShell for .NET • Loading SharePoint Assemblies • 2007 • 2010/2013
  7. 7. Instantiating Objects • 2007 • 2010/2013
  8. 8. Going Deeper into PS Objects • Two most important CMDLets in PowerShell – Get-Help – Get-Member
  9. 9. Writing XML • • • • • Create the XML variable Query your desired data Select the XML Node where you want to insert data Create a new Element and set any desired attributes Append the new Element to the selected Node in the XML Variable
  10. 10. Creating the XML object
  11. 11. Get the local Farm object
  12. 12. Saving the XML to a file
  13. 13. Reading XML from a File
  14. 14. Get Web App Data
  15. 15. Finding Data in XML
  16. 16. Searching XML with XPath
  17. 17. Get Alternate Access Mappings
  18. 18. Get Content Database Data
  19. 19. Get Service App Data
  20. 20. Display Web App Config Data
  21. 21. Display Databases for Web App
  22. 22. Putting it all together http://spaudit.codeplex.com
  23. 23. Where can you go from here? • Incorporate the XML output into an automated install script (AutoSPInstaller?) • Use the XML as a data source in SharePoint • File it away for rebuilds or migrations
  24. 24. Summary • We covered – – – – Gathering useful information from SharePoint Storing that information in XML Retrieving Information from XML Using the output XML in an example scenario
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×