Published on February 24, 2014
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 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/
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
Agenda • • • • • • PowerShell & XML Creating an XML structure Mining SharePoint for configuration data Reading & Writing XML Mining the output XML for data Usage scenarios
Why XML? • • • • • Natively supported by PowerShell and .NET Lightweight/Portable Easy to update by hand Relational (Hierarchically) Widely compatible
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 Create a new Element and set any desired attributes Append the new Element to the selected Node in the XML Variable
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 as a data source in SharePoint • File it away for rebuilds or migrations
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
Create a blueprint of your Farm using PowerShell with ... Corey Burke, SharePoint Architect ... for duplicating your Farm. 2. Understand how PowerShell ...
SharePoint Webinar Library ... Corey Burke Create a blueprint of your Farm using ... In this webinar we will discuss using PowerShell to extract ...
... Corey Burke on SharePoint & PowerShell ... uses PowerShell's native XML support to create an XML blueprint of your farm. ... Corey Burke, Team Lead ...
Below is an example of how you can quickly create a CSV file using PowerShell: ... in the case that your DEV Farm will be using ... Corey.Burke @Rackspace ...
See more of Learn Visual Studio by ... of your Farm using PowerShell with Corey Burke Create a blueprint of your Farm using PowerShell with Corey ...
Create a Blueprint of your Farm using PowerShell presented by Corey Burke Register here: http://bit.ly/1gqVxBx; 19.2.2014 11:00 Uhr Using SharePoint 2013 ...
Daoudi Samir's Blog ... of your Farm using PowerShell with Corey Burke. ... in SharePoint v. and how they can be used to create business solutions ...
... my new Record Library Go to your Library Settings for ... a Document from a Record Library. ... of your Farm using PowerShell with Corey Burke.
Bringing automation to the IT masses ... 18th February on Create a Blueprint of your Farm using ... webinars from Sahil Malik, Adis Jugo, Corey Burke, ...