Top Menu

Thursday, December 4, 2014

Reading XML with PowerShell

Here is an example of accessing XML data via PowerShell:

Script:
$xmlDocument = [xml] @"
<catalog>
   <book id="101">
      <author>Author1</author>
      <title>Title1</title>
      <genre>Genere1</genre>
      <price>45.95</price>
      <publish_date>2000-10-01</publish_date>
      <description>This is a description1.</description>
   </book>
   <book id="101">
      <author>Author2</author>
      <title>Title2</title>
      <genre>Genere2</genre>
      <price>75.99</price>
      <publish_date>1998-7-15</publish_date>
      <description>This is a description2.</description>
   </book>
</catalog>
"@

$xmlDocument.catalog.book | Select-Object -Property author, title, price

Result:
PS C:\Users\tnaveed\Desktop> C:\Users\tnaveed\Desktop\CheckUser.ps1

author                         title                         price                        
------                         -----                         -----                        
Author1                        Title1                        45.95                        
Author2                        Title2                        75.99                        

Wednesday, December 3, 2014

SharePoint 2010 to 2013 Migration

Following are few resources for migrating SharePoint 2010 Content Database to SharePoint 2013:

SharePoint 2013 Upgrade Process
http://www.microsoft.com/en-us/download/details.aspx?id=30371

SharePoint 2013 Upgrade Step by Step From SharePoint 2010
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/sharepoint-2013-upgrade-step-by-step-from-sharepoint-2010

SharePoint 2010 database migration to SharePoint 2013
http://en.share-gate.com/blog/step-by-step-upgrade-sharepoint-2010-database-to-sharepoint-2013