<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Priyo's SharePoint Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/priyo/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/priyo/feed.xml</link>
    <description>Essential tips on SharePoint from Priyo Lahiri -  Microsoft North America Partner Support Team.</description>
    <lastBuildDate>Tue, 16 Apr 2019 05:25:26 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>A quick note on manually creating DPM Catalog for SharePoint backup</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/a-quick-note-on-manually-creating-dpm-catalog-for-sharepoint-backup</link>
      <pubDate>Fri, 24 Jan 2014 07:42:21 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2014/01/24/a-quick-note-on-manually-creating-dpm-catalog-for-sharepoint-backup/</guid>
      <description><![CDATA[… before I forget wanted to put a quick note on how to manually create DPM catalog for SharePoint...]]></description>
      <content:encoded><![CDATA[<p>… before I forget wanted to put a quick note on how to manually create DPM catalog for SharePoint 2013 item level recovery.</p>  <p>After you have created the protection group and created the recovery point, if you want to test item level restore, you need to wait for a day so that DPM can run its catalog generation in its own sweet time. in previous versions it was about 3 hours after the recover point creation, not sure what the exact duration is in 2012 SP1 version. Oh, by the way, if you are using System Center Data Protection Manager 2012 SP1, I highly recommend running Microsoft Update and getting <a href="https://catalog.update.microsoft.com/v7/site/Search.aspx?q=2751230" target="_blank">RU3 patch</a>.</p>  <p>Anyway, back to the topic at hand.</p>  <p>Open up DPM Management Shell or PowerShell ISE and run the following script:</p>  <p>Import-Module DataProtectionManager    <br /> # the import Module command is only required when using PowerShell or PowerShell ISE</p>  <p>$hostname = hostname    <br /> Get-ProtectionGroup $hostname | Get-Datasource | Where-Object {$_.type -like &quot;*sharepoint*&quot;} | Start-CreateCatalog</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/0675.image_7C594509.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/0675.image_5F00_7C594509.png"><img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/5383.image_thumb_2C16ED89.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/5383.image_5F00_thumb_5F00_2C16ED89.png" width="822" height="314" /></a></p>  <p>To monitor the progress of the Job, go to your Monitoring Tab in DPM Console.</p>  <p>B/w backup restore SharePoint 2013 works with both HostHeader Site Collection and HostNamed SiteCollection with System Center Data Protection Manager 2012 SP1 with RU3 patch.</p>  <p>Hope this helps.</p>  <p>Cheers!</p>  <p>Priyo</p>]]></content:encoded>
    </item>
    <item>
      <title>Configuring SharePoint 2013 Forms-Based Authentication with SQLMemberShipProvider</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider</link>
      <pubDate>Fri, 13 Dec 2013 08:32:24 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/12/13/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider/</guid>
      <description><![CDATA[Another post I did for our Team blog site… how to configure SharePoint 2013 with...]]></description>
      <content:encoded><![CDATA[<p>Another post I did for our Team blog site… how to configure SharePoint 2013 with SQLMemberShipProvider. check it out.. </p>  <p><a title="https://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx#comments" href="https://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx">https://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx</a>&#160; </p>    <p>Cheers!</p>  <p>Priyo </p>]]></content:encoded>
    </item>
    <item>
      <title>Configure SharePoint 2013 Search with PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/configure-sharepoint-2013-search-with-powershell</link>
      <pubDate>Fri, 13 Dec 2013 08:28:32 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/12/13/configure-sharepoint-2013-search-with-powershell/</guid>
      <description><![CDATA[wrote a post a while back that’s posted on your official Team blog on how to Configure SharePoint...]]></description>
      <content:encoded><![CDATA[<p>wrote a post a while back that’s posted on your official Team blog on how to Configure SharePoint 2013 Search with PowerShell. There is a script in the blog as well that you could use to test it out in your lab. Check it out - <a title="https://blogs.technet.com/b/ptsblog/archive/2013/09/19/configuring-sharepoint-2013-search-with-powershell.aspx" href="https://blogs.technet.com/b/ptsblog/archive/2013/09/19/configuring-sharepoint-2013-search-with-powershell.aspx">https://blogs.technet.com/b/ptsblog/archive/2013/09/19/configuring-sharepoint-2013-search-with-powershell.aspx</a>&#160;</p>  <p>Cheers!</p>  <p>Priyo </p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013 on Windows Server 2012 R2</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/sharepoint-2013-on-windows-server-2012-r2</link>
      <pubDate>Tue, 01 Oct 2013 06:32:51 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/10/01/sharepoint-2013-on-windows-server-2012-r2/</guid>
      <description><![CDATA[… not yet supported. It will be with SP1. Read more here:...]]></description>
      <content:encoded><![CDATA[<p>… not yet supported. It will be with SP1. Read more here: <a title="https://support.microsoft.com/kb/2891274" href="https://support.microsoft.com/kb/2891274">https://support.microsoft.com/kb/2891274</a>&#160;</p>  <p>&#160;</p>  <p>Cheers,</p>  <p>Priyo </p>]]></content:encoded>
    </item>
    <item>
      <title>Office 2013 vs Office Old</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/office-2013-vs-office-old</link>
      <pubDate>Fri, 27 Sep 2013 06:33:45 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/09/27/office-2013-vs-office-old/</guid>
      <description><![CDATA[Check this out….   Compare the different Office versions from 2003 – 2013 :...]]></description>
      <content:encoded><![CDATA[<p>Check this out…. </p>  <p>Compare the different Office versions from 2003 – 2013 : <a title="https://www.microsoft.com/business/en-ie/Whats-new/Pages/Article.aspx?cbcid=75#" href="https://www.microsoft.com/business/en-ie/Whats-new/Pages/Article.aspx?cbcid=75#">https://www.microsoft.com/business/en-ie/Whats-new/Pages/Article.aspx?cbcid=75#</a>&#160;</p>  <p>&#160;</p>  <p>Cheers!</p>  <p>Priyo </p>]]></content:encoded>
    </item>
    <item>
      <title>Configure SharePoint 2013 Farm with PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/configure-sharepoint-2013-farm-with-powershell</link>
      <pubDate>Fri, 13 Sep 2013 11:56:00 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/09/13/configure-sharepoint-2013-farm-with-powershell/</guid>
      <description><![CDATA[A little PowerShell script that I often use while setting up my demo environments. There is more...]]></description>
      <content:encoded><![CDATA[<p>A little PowerShell script that I often use while setting up my demo environments. There is more addition to this coming&hellip;</p>
<p>For sake of sanity&hellip; there is a zip file attached to this post with the ps1 file in it.</p>
<p>&nbsp;</p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Clear-Host</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;"># Values mentioned below needs to be edited</span> </span></p>
<p style="background: white;">&nbsp;<span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$DatabaseServer</span> <span style="color: darkgray;">=</span> <span style="color: darkred;">"SQL01"</span>; <span style="color: darkgreen;">#SPecify the instance name if SQL is not installed on default instance</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$FarmName</span> <span style="color: darkgray;">=</span> <span style="color: darkred;">"SP2013"</span>; </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$ConfigDB</span> <span style="color: darkgray;">=</span> <span style="color: orangered;">$FarmName<span style="color: darkgray;">+<span style="color: darkred;">"_ConfigDB"</span>; </span></span></span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$AdminContentDB</span> <span style="color: darkgray;">=</span> <span style="color: orangered;">$FarmName<span style="color: darkgray;">+<span style="color: darkred;">"_CentralAdminContent"</span>; </span></span></span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$Passphrase</span> <span style="color: darkgray;">=</span> <span style="color: blue;">convertto-securestring</span> <span style="color: darkred;">"pass@word1"</span> <span style="color: navy;">-asplaintext</span> <span style="color: navy;">-force</span>; </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$Port</span> <span style="color: darkgray;">=</span> <span style="color: darkred;">"2013"</span>; </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$Authentication</span> <span style="color: darkgray;">=</span> <span style="color: darkred;">"NTLM"</span>; </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$FarmAccount</span> <span style="color: darkgray;">=</span> <span style="color: darkred;">"waterfall\spfarm"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;">##########################################################################</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;">############################### DO NOT EDIT ANYTHING BELOW THIS LINE #####</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;">##########################################################################</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;">#Start Loading SharePoint Snap-in</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: orangered;">$snapin</span> <span style="color: darkgray;">=</span> (<span style="color: blue;">Get-PSSnapin</span> <span style="color: navy;">-name</span> <span style="color: blueviolet;">Microsoft.SharePoint.PowerShell</span> <span style="color: navy;">-EA</span> <span style="color: blueviolet;">SilentlyContinue</span>) </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkblue;">IF</span> (<span style="color: orangered;">$snapin</span> <span style="color: darkgray;">-ne</span> <span style="color: orangered;">$null</span>){<span style="color: blue;">write-host</span> <span style="color: navy;">-f</span> <span style="color: blueviolet;">Green</span> <span style="color: darkred;">"SharePoint Snapin is loaded... No Action taken"</span>} </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkblue;">ELSE</span> { </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">write-host</span> <span style="color: navy;">-f</span> <span style="color: blueviolet;">Yellow</span> <span style="color: darkred;">"SharePoint Snapin not found... Loading now"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Add-PSSnapin</span> <span style="color: blueviolet;">Microsoft.SharePoint.PowerShell</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">write-host</span> <span style="color: navy;">-f</span> <span style="color: blueviolet;">Green</span> <span style="color: darkred;">"SharePoint Snapin is now loaded"</span>} </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;"># END Loading SharePoint Snapin</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkgreen;"># checking to see if SharePoint Binaries are installed</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkblue;">IF</span>((<span style="color: blue;">Get-WmiObject</span> <span style="color: navy;">-Class</span> <span style="color: blueviolet;">Win32_Product</span> <span style="color: darkgray;">|</span> <span style="color: blue;">Where</span> {<span style="color: orangered;">$_<span style="color: darkgray;">.</span>Name <span style="color: darkgray;">-eq</span> <span style="color: darkred;">"Microsoft SharePoint Server 2013 "</span>}) <span style="color: darkgray;">-ne</span> $null</span>) </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;">{<span style="color: darkred;">"Found SharePoint Server 2013 Binaries. Will create Farm now"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">New-SPConfigurationDatabase</span> <span style="color: navy;">-DatabaseName</span> <span style="color: orangered;">$ConfigDB</span> <span style="color: navy;">-DatabaseServer</span> <span style="color: orangered;">$DatabaseServer</span> <span style="color: navy;">-FarmCredentials</span> (<span style="color: blue;">Get-Credential</span> <span style="color: orangered;">$farmAccount</span>) <span style="color: navy;">-Passphrase</span> <span style="color: orangered;">$Passphrase</span> <span style="color: navy;">-AdministrationContentDatabaseName</span> <span style="color: orangered;">$AdminContentDB</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Remove-PSSnapin</span> <span style="color: blueviolet;">Microsoft.SharePoint.PowerShell</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Add-PSSnapin</span> <span style="color: blueviolet;">Microsoft.SharePoint.PowerShell</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Install-SPHelpCollection</span> <span style="color: navy;">-All</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkred;">"Installed Help Collection"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Initialize-SPResourceSecurity</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkred;">"Initialized SP Resource Security"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Install-SPService</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkred;">"Instaled Ssp service"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Install-SPFeature</span> <span style="color: navy;">-AllExistingFeatures</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkred;">"Installed SP Feature"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">New-SPCentralAdministration</span> <span style="color: navy;">-Port</span> <span style="color: orangered;">$Port</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkred;">"Created Central Administration Site"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: blue;">Install-SPApplicationContent</span> </span></p>
<p style="background: white;"><span style="color: darkred; font-family: Lucida Console; font-size: 9pt;">"Installed Application Content. This was the last step. </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkred;">Farm Configuration Complete!"</span> </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;">} </span></p>
<p style="background: white;"><span style="font-family: Lucida Console; font-size: 9pt;"><span style="color: darkblue;">ELSE</span> {<span style="color: darkred;">"SP Binaries not found"</span>} </span></p>
<p style="background: white;">&nbsp;&nbsp;</p>
<p style="margin-left: 43pt;"><span style="font-family: Times New Roman; font-size: 12pt;"><strong>This posting is provided "AS IS" with no warranties, and confers no rights.</strong> </span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/44/90/11/Create%20SP%20Farm-Blog.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-44-90-11/Create-SP-Farm_2D00_Blog.zip">Create SP Farm-Blog.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>SkyDrive Pro stand alone client</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/skydrive-pro-stand-alone-client</link>
      <pubDate>Fri, 13 Sep 2013 11:01:09 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/09/13/skydrive-pro-stand-alone-client/</guid>
      <description><![CDATA[You can now use SkyDrive Pro without having Office Pro. Download the stand-alone client here.  This...]]></description>
      <content:encoded><![CDATA[<p>You can now use SkyDrive Pro without having Office Pro. Download the stand-alone client <a href="https://www.microsoft.com/en-us/download/details.aspx?id=39050" target="_blank">here</a>.</p>  <p><strong>This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.</strong></p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Alias for SharePoint</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/sql-alias-for-sharepoint</link>
      <pubDate>Fri, 13 Sep 2013 10:54:06 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/09/13/sql-alias-for-sharepoint/</guid>
      <description><![CDATA[Technorati Tags: SharePoint 2013,SharePoint,SharePoint Foundation,SQL Alias    Having SharePoint...]]></description>
      <content:encoded><![CDATA[<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:78c6db9a-5d57-4654-ae0c-3857bd0b2f0f" class="wlWriterEditableSmartContent" style="margin: 0px; padding: 0px; float: none; display: inline;">Technorati Tags: <a href="https://technorati.com/tags/SharePoint+2013" rel="tag">SharePoint 2013</a>,<a href="https://technorati.com/tags/SharePoint" rel="tag">SharePoint</a>,<a href="https://technorati.com/tags/SharePoint+Foundation" rel="tag">SharePoint Foundation</a>,<a href="https://technorati.com/tags/SQL+Alias" rel="tag">SQL Alias</a></div>    <p>Having SharePoint connect to a SQL Alias instead of the NetBIOS name is always a good idea. The main benefit is, if you ever have to switch the SQL Server or connect to a SQL Cluster VIP address, you just change the Alias to point to the SQL Cluster name on the SharePoint Server and restart the SharePoint Timer Service and you are good to go. This can save huge amount of time and headache. Follow the steps below to create a SQL Alias on all your SharePoint Servers:</p>  <p>1. Perform this on the Application Server that is hosting Central Administration</p>  <p>a. Stop all SharePoint Services</p>  <p>b. Open CLICONFIG.exe from C:\Windows\System32\cliconfg.exe (64 bit version of cliconfig.exe)</p>  <p>c. Enable TCP/IP under general tab    <br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/0841.clip_image002_5A9BAB1C.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/0841.clip_5F00_image002_5F00_5A9BAB1C.jpg"><img title="clip_image002" style="margin: 0px; display: inline; background-image: none;" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/8688.clip_image002_thumb_2EEAE120.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/8688.clip_5F00_image002_5F00_thumb_5F00_2EEAE120.jpg" width="244" height="161" /></a></p>  <p>d. Click on Alias Tab</p>  <p>e. Type Current SQL Server Name in the Alias Name field</p>  <p>f. Type Current SQL Server Name in the Server field (see screenshot below. In your case SQL Alias and SQL Server name is the same)    <br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/1832.clip_image004_6A3E46DE.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/1832.clip_5F00_image004_5F00_6A3E46DE.jpg"><img title="clip_image004" style="display: inline; background-image: none;" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/3513.clip_image004_thumb_10A02A2A.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/3513.clip_5F00_image004_5F00_thumb_5F00_10A02A2A.jpg" width="244" height="131" /></a></p>  <p>g. Validate SQL Alias</p>  <p>i. Create a new text file on SharePoint Server and name it “TestDBConnection.udl”</p>  <p>ii. Double click to open the file and enter your SQL Server Alias name</p>  <p>iii. Use Windows Integrated Security</p>  <p>iv. You should be able to see all your SharePoint databases when you click on “Select the database on the Server”</p>  <p>h. Start all services for SharePoint Server / Reboot SharePoint Server</p>  <p>i. Perform the steps above on all other SharePoint servers</p>  <p>&#160;</p>  <p><strong>This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.</strong></p>]]></content:encoded>
    </item>
    <item>
      <title>SkyDrive Pro in SharePoint 2013</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/skydrive-pro-in-sharepoint-2013</link>
      <pubDate>Thu, 07 Feb 2013 13:24:59 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/02/07/skydrive-pro-in-sharepoint-2013/</guid>
      <description><![CDATA[I often get this question so thought will document this for easier reference:  &#160;     What is...]]></description>
      <content:encoded><![CDATA[<p>I often get this question so thought will document this for easier reference:</p>  <p>&#160;</p>  <ul>   <li>What is SkyDrive Pro? – its your My Site in SharePoint 2013.</li>    <li>What is SkyDrive Pro client then? – its a Client for Syncing your My Site content on your client machine. Its a part of Office 2013 Standard or ProPlus install and not available as a separate download. this means you cannot use the Sync client if you have Office 2010 or 2007 </li>    <li>Can I Use SharePoint Workspace 2010 – Yes. it needs a HotFix when installed with Office 2013. Ref: <a href="https://support.microsoft.com/kb/2687364">https://support.microsoft.com/kb/2687364</a> . In fact, if you need to take a list offline, SharePoint WorkSpace 2010 is what you need, SkyDrive Pro client cannot do that.</li>    <li>Can I use SkyDrive instead? – No. SkyDrive is the consumer offering and cannot be used as a replacement for SkyDrive Pro.</li>    <li>Why does it say SkyDrive on my internal SharePoint site? – its an abbreviation of SkyDrive Pro :-)</li>    <li>Is there a peer-to-peer sync capability with SkyDrive Pro? No.</li>    <li>Can I choose what to sync like commercial SkyDrive? No. Not at the moment. </li> </ul>  <p>&#160;</p>  <p>More references: </p>  <ul>   <li><a href="https://sharepoint.microsoft.com/Blogs/GetThePoint/Lists/Posts/Post.aspx?ID=675">https://sharepoint.microsoft.com/Blogs/GetThePoint/Lists/Posts/Post.aspx?ID=675</a></li>    <li><a title="https://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1015" href="https://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1015">https://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1015</a></li>    <li><a title="https://office.microsoft.com/en-us/sharepoint-server-help/what-is-skydrive-pro-HA102822076.aspx" href="https://office.microsoft.com/en-us/sharepoint-server-help/what-is-skydrive-pro-HA102822076.aspx">https://office.microsoft.com/en-us/sharepoint-server-help/what-is-skydrive-pro-HA102822076.aspx</a>&#160;</li>    <li><a title="https://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1033" href="https://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1033">https://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=1033</a>&#160;</li> </ul>  <p><strong>Update Sep 2013</strong></p>  <p>SkyDrive Pro stand alone client has been released. You can download it from <a href="https://www.microsoft.com/en-us/download/details.aspx?id=39050" target="_blank">here</a>.</p>  <p>&#160;</p>  <p><strong>This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.</strong></p>]]></content:encoded>
    </item>
    <item>
      <title>Automating SharePoint 2010 Administration with PowerShell: Renaming the Admin Content DB</title>
      <link>https://docs.microsoft.com/archive/blogs/priyo/automating-sharepoint-2010-administration-with-powershell-renaming-the-admin-content-db</link>
      <pubDate>Sun, 20 Jan 2013 11:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Priyo Lahiri [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/priyo/2013/01/20/automating-sharepoint-2010-administration-with-powershell-renaming-the-admin-content-db/</guid>
      <description><![CDATA[If you don&rsquo;t like the GUID that trails the Central Admin Content DB, you have 2 options,...]]></description>
      <content:encoded><![CDATA[<p>If you don&rsquo;t like the GUID that trails the Central Admin Content DB, you have 2 options, create the Farm with PowerShell / scripting and create the databases with names that you like OR if you already have a Farm, you can use the scripts below to change the Admin Content (Central Admin Content Database). Needless to say during this operation your Central Admin site is not accessible. These scripts also call IISRESET and hence plan for downtime.</p>
<p>There are 2 examples of this script, both are 100% automated. The only thing the Script expects the User to provide is the name of the New Content Database. I would love to automate it with Read-YourMind cmdlet&hellip; but let&rsquo;s leave it for now J.</p>
<p>Method 1 &ndash; Using Move-SPSite cmd-let.</p>
<p>What we are doing here:</p>
<p>1. Getting the Central Admin URL and the New Content DB Name from the User</p>
<p>2. Populating the variables we need to perform the operation like the Current Admin Content DB Name, SQL Server Name and the Database ID</p>
<p>3. Creating a New Content Database and Attaching it to the Central Admin Web Application</p>
<p>4. Calling SP-MoveSite to Move 2 sites from Old Content Database to the New one</p>
<p>5. Lastly, we ask the user if he wants to Detach the Content DB from the web application or completely delete it from SQL</p>
<p>The operation can be screen in the below screenshots:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/4774.clip_image002_6B25EE16.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/4774.clip_5F00_image002_5F00_6B25EE16.jpg"><img style="display: inline; background-image: none;" title="clip_image002" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/6431.clip_image002_thumb_4A327B6F.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/6431.clip_5F00_image002_5F00_thumb_5F00_4A327B6F.jpg" alt="clip_image002" width="655" height="66" border="0" /></a></p>
<p>Current Content DB with 2 Site Collections</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/4774.clip_image004_377D81B8.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/4774.clip_5F00_image004_5F00_377D81B8.jpg"><img style="display: inline; background-image: none;" title="clip_image004" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/6431.clip_image004_thumb_0FD7058E.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/6431.clip_5F00_image004_5F00_thumb_5F00_0FD7058E.jpg" alt="clip_image004" width="656" height="75" border="0" /></a></p>
<p>New Content DB Attached to the same Web App and Site Collections have been moved to the New Content DB</p>
<p>This is the Script. For convenience, you can also download the zip file attached to this post. The zip file contains 2 scripts RenameAdminContentDB_Method1.PS1 (Move-SPSite Method) and RenameAdminContentDB_Method1.PS1 (Backup &ndash; restore methos described later in the post.)</p>
<div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: 'Courier New', courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: #f4f4f4;">
<div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum1" style="color: #606060;"> 1:</span> Clear-Host</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum2" style="color: #606060;"> 2:</span> ############################################################################################################################ <span style="color: #0000ff;">DO</span> NOT EDIT ANYTHING BELOW THIS LINE ###########################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum3" style="color: #606060;"> 3:</span> #############################################################################################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum4" style="color: #606060;"> 4:</span> # Start Loading SharePoint Snap-<span style="color: #0000ff;">in</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum5" style="color: #606060;"> 5:</span> $snapin = (Get-PSSnapin -name Microsoft.SharePoint.PowerShell -EA SilentlyContinue)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum6" style="color: #606060;"> 6:</span> <span style="color: #0000ff;">IF</span> ($snapin -ne $null){write-host -f Green <span style="color: #006080;">"SharePoint Snapin is loaded... No Action taken"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum7" style="color: #606060;"> 7:</span> <span style="color: #0000ff;">ELSE</span>  {write-host -f Yellow <span style="color: #006080;">"SharePoint Snapin not found... Loading now"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum8" style="color: #606060;"> 8:</span> Add-PSSnapin Microsoft.SharePoint.PowerShell</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum9" style="color: #606060;"> 9:</span> write-host -f Green <span style="color: #006080;">"SharePoint Snapin is now loaded"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum10" style="color: #606060;"> 10:</span> # END Loading SharePoint Snapin</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum11" style="color: #606060;"> 11:</span> #Detect CA Site URL </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum12" style="color: #606060;"> 12:</span> $CA = (Get-SPWebApplication -IncludeCentralAdministration | where {$_.DisplayName -eq <span style="color: #006080;">"SharePoint Central Administration v4"</span>}).Url</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum13" style="color: #606060;"> 13:</span> #Get New Content DB Name from User</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum14" style="color: #606060;"> 14:</span> $NewContentDB = Read-Host <span style="color: #006080;">"Enter the New Content Database Name for your Central Admin Site"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum15" style="color: #606060;"> 15:</span> <span style="color: #0000ff;">IF</span> ($NewContentDB -eq ''){Write-Host -f Red <span style="color: #006080;">"Blank value for Content DB. Cannot proceed. Exiting..."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum16" style="color: #606060;"> 16:</span> break}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum17" style="color: #606060;"> 17:</span> # grab SQL Server Name</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum18" style="color: #606060;"> 18:</span> $SQLServer = (Get-SPContentDatabase -WebApplication $CA -EA Stop).Server</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum19" style="color: #606060;"> 19:</span> $OldDB = (Get-SPContentDatabase -WebApplication $CA -EA Stop).DB</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum20" style="color: #606060;"> 20:</span> $OldDBID = (Get-SPContentDatabase -WebApplication $CA -EA Stop).ID</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum21" style="color: #606060;"> 21:</span> #Create new SP_contentDB</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum22" style="color: #606060;"> 22:</span> Write-Host -f Green <span style="color: #006080;">"Creating Content DB..."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum23" style="color: #606060;"> 23:</span> New-SPContentDatabase -Name $NewContentDB -WebApplication $CA -DatabaseServer $SQLServer -ErrorAction STOP</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum24" style="color: #606060;"> 24:</span> Write-Host -f Green <span style="color: #006080;">"New Content DB Created and Attached to your Central Admin Site"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum25" style="color: #606060;"> 25:</span> #Grab ID of the New Content DB</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum26" style="color: #606060;"> 26:</span> $NewContentDBID = (Get-SPContentDatabase -WebApplication $CA | ?{$_.Name -eq $NewContentDB}).id</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum27" style="color: #606060;"> 27:</span> #Get and Move SP-Site</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum28" style="color: #606060;"> 28:</span> Get-SPSite -ContentDatabase $OldDBID | Move-SPSite -DestinationDatabase $NewContentDBID -Confirm:$<span style="color: #0000ff;">False</span> -EA Stop</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum29" style="color: #606060;"> 29:</span> Write-Host -f Green <span style="color: #006080;">"Site Move complete."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum30" style="color: #606060;"> 30:</span> Write-Host -f Green <span style="color: #006080;">"Resetting IIS now..."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum31" style="color: #606060;"> 31:</span> IISRESET</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum32" style="color: #606060;"> 32:</span> $RemoveOption = Read-Host <span style="color: #006080;">"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum33" style="color: #606060;"> 33:</span> Choose Remove Database Option:</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum34" style="color: #606060;"> 34:</span> 1 - Remove (DELETES the Database from SQL)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum35" style="color: #606060;"> 35:</span> 2 - Dismount (Detach the DB from Web Application)"</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum36" style="color: #606060;"> 36:</span> <span style="color: #0000ff;">IF</span> ($RemoveOption -eq '1') {Remove-SPContentDatabase -Identity $OldDBID -EA Stop</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum37" style="color: #606060;"> 37:</span> Write-Host -F Green <span style="color: #006080;">"Database deleted from SQL Server."</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum38" style="color: #606060;"> 38:</span> <span style="color: #0000ff;">ElseIF</span> ($RemoveOption -eq '2') {Dismount-SPContentDatabase -Identity $OldDBID -Confirm:$<span style="color: #0000ff;">False</span> -EA Stop</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum39" style="color: #606060;"> 39:</span> Write-Host -F Yellow <span style="color: #006080;">"Database detached from SharePoint Web Application. Please delete the Database manually from SQL Server."</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum40" style="color: #606060;"> 40:</span> <span style="color: #0000ff;">Else</span> {Write-Host -f Yellow <span style="color: #006080;">"Invalid Option chosen. No action was taken."</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum41" style="color: #606060;"> 41:</span> Write-Host -F Green <span style="color: #006080;">"All Opearation Completed Successfully."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum42" style="color: #606060;"> 42:</span> ################### END SCRIPT ###########################</pre>
<!--CRLF--></div>
</div>
<p>&nbsp;</p>
<p>Method 2 &ndash; Using SQL Backup and Restore.</p>
<p>This method is primary for demonstration purposes. It shows how you can call SQL Commands and SMO (SQL Server Management Objects) directly from PowerShell along with SharePoint. I will use the same method in future posts on automating tasks for Database mirroring. Though this script can be used for any content database, I have tested this with the Central Admin Content Database only. Also, the script below you will see that when we restore the database, we are getting the LogicalName of the SQL MDF and LDF File from the backup set (your original SharePoint_AdminContent_GUID). Though it&rsquo;s possible to fire a Alter Database Statement to change the names, running Alter Database statement on SharePoint Databases are not supported and you should refrain from doing that.</p>
<p>This script also has the following prerequisite:</p>
<p>To use this script you need SQL Server Client Components to be installed on the Server and you need the required permissions for backup / restore on SQL. It&rsquo;s also possible to run the SQL Section of the script on the SQL Box, or put it on the SQL Box as a ps1 file and call it form the script below with &ndash;session parameter if you do not have SQL Server Client Components installed on the server.</p>
<p>This script is fully automated and performs the following steps:</p>
<ul>
<li>Loads SharePoint and SQL Snap-in</li>
<li>Detects the Central Admin Site URL</li>
<li>Populates the required variables like SQL Server Name, Database Name</li>
<li>Loads SQL Assemblies to get SQL Server Defaults for Backup Location and MDF / LDF File Locations</li>
<li>Constructs a new Backup File name with TimeStamp</li>
<li>Creates the Backup Statement and stores it in a String</li>
<li>Invokes SQLCmd to execute the backup statement &ndash; this first runs a full backup and then a Transaction Log backup so that we don&rsquo;t lose the Tail of the Log (required for all databases with FULL Recovery Model)</li>
<li>Enters Restore Operation block</li>
<li>Grabs the LogicalName of the MDF and LDF File from the BackupSet through SQLSMO.Restore object</li>
<li>Gets the Name of the New Content DB from the User</li>
<li>Generates the Restore Statement</li>
<li>Invokes SQLCmd to execute the Restore statement &ndash; First the Full backup with NORECOVERY option and then the Transaction Log File</li>
<li>Comes back to SharePoint Loop &ndash; First step is to dismount the Old Content DB</li>
<li>Mounts the new Content DB to the Web App</li>
<li>Runs IISRESET</li>
<li>Provides a remove option to the user &ndash; if user selects that option, the database is permanently deleted.</li>
</ul>
<div id="codeSnippetWrapper" style="margin: 20px 0px 10px; padding: 4px; border: 1px solid silver; width: 97.5%; text-align: left; line-height: 12pt; overflow: auto; font-family: 'Courier New', courier, monospace; font-size: 8pt; cursor: text; direction: ltr; max-height: 200px; background-color: #f4f4f4;">
<div id="codeSnippet" style="padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;">
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum1" style="color: #606060;"> 1:</span> Clear-Host</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum2" style="color: #606060;"> 2:</span> ############################################################################################################################ <span style="color: #0000ff;">DO</span> NOT EDIT ANYTHING BELOW THIS LINE ###########################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum3" style="color: #606060;"> 3:</span> #############################################################################################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum4" style="color: #606060;"> 4:</span> # Start Loading SharePoint Snap-<span style="color: #0000ff;">in</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum5" style="color: #606060;"> 5:</span> $snapin = (Get-PSSnapin -name Microsoft.SharePoint.PowerShell -EA SilentlyContinue)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum6" style="color: #606060;"> 6:</span> <span style="color: #0000ff;">IF</span> ($snapin -ne $null){write-host -f Green <span style="color: #006080;">"SharePoint Snapin is loaded... No Action taken"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum7" style="color: #606060;"> 7:</span> <span style="color: #0000ff;">ELSE</span>  {write-host -f Yellow <span style="color: #006080;">"SharePoint Snapin not found... Loading now"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum8" style="color: #606060;"> 8:</span> Add-PSSnapin Microsoft.SharePoint.PowerShell</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum9" style="color: #606060;"> 9:</span> write-host -f Green <span style="color: #006080;">"SharePoint Snapin is now loaded"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum10" style="color: #606060;"> 10:</span> # END Loading SharePoint Snapin</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum11" style="color: #606060;"> 11:</span> # Start Loading SQL Snap-<span style="color: #0000ff;">in</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum12" style="color: #606060;"> 12:</span> ## Check <span style="color: #0000ff;">to</span> see <span style="color: #0000ff;">if</span> SQL Server Provider <span style="color: #0000ff;">for</span> Windows PowerShell is installed </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum13" style="color: #606060;"> 13:</span> # Add the SQL Server Provider. Ref: https://technet.microsoft.com/en-us/library/cc281962.aspx </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum14" style="color: #606060;"> 14:</span> $ErrorActionPreference = <span style="color: #006080;">"Stop"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum15" style="color: #606060;"> 15:</span> $sqlpsreg=<span style="color: #006080;">"HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.SqlServer.Management.PowerShell.sqlps"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum16" style="color: #606060;"> 16:</span> <span style="color: #0000ff;">if</span> (Get-ChildItem $sqlpsreg -ErrorAction <span style="color: #006080;">"SilentlyContinue"</span>)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum17" style="color: #606060;"> 17:</span> {    throw <span style="color: #006080;">"SQL Server Provider for Windows PowerShell is not installed. Please install Client Components first."</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum18" style="color: #606060;"> 18:</span> <span style="color: #0000ff;">Else</span>{    $item = Get-ItemProperty $sqlpsreg</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum19" style="color: #606060;"> 19:</span>     $sqlpsPath = [System.IO.Path]::GetDirectoryName($item.Path)}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum20" style="color: #606060;"> 20:</span> $snapin = (Get-PSSnapin -name SqlServerCmdletSnapin100  -EA SilentlyContinue)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum21" style="color: #606060;"> 21:</span> <span style="color: #0000ff;">IF</span> ($snapin -ne $null){write-host -f Green <span style="color: #006080;">"SQL Snapin is loaded... No Action taken"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum22" style="color: #606060;"> 22:</span> <span style="color: #0000ff;">ELSE</span>  {write-host -f Yellow <span style="color: #006080;">"SQL Snapin not found... Loading now"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum23" style="color: #606060;"> 23:</span> Add-PSSnapin SqlServerCmdletSnapin100</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum24" style="color: #606060;"> 24:</span> write-host -f Green <span style="color: #006080;">"SQL Snapin is now loaded"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum25" style="color: #606060;"> 25:</span> # END Loading SQL Snap-<span style="color: #0000ff;">in</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum26" style="color: #606060;"> 26:</span> ######################### START SharePoint Loop ##################################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum27" style="color: #606060;"> 27:</span> # Detect CA Site</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum28" style="color: #606060;"> 28:</span> $CA = (Get-SPWebApplication -IncludeCentralAdministration | where {$_.DisplayName -eq <span style="color: #006080;">"SharePoint Central Administration v4"</span>}).Url</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum29" style="color: #606060;"> 29:</span> # Get Content DB Name</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum30" style="color: #606060;"> 30:</span> $CACurrentdb  = (Get-SPContentDatabase -WebApplication $CA).Name</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum31" style="color: #606060;"> 31:</span> $SQLServer = (Get-SPContentDatabase -WebApplication $CA).Server</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum32" style="color: #606060;"> 32:</span> Write-Host -f Green <span style="color: #006080;">"Central Admin Content DB Name: "</span> $CACurrentdb</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum33" style="color: #606060;"> 33:</span> Write-Host -f Green <span style="color: #006080;">"Detected SQL Server: "</span> $SQLServer</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum34" style="color: #606060;"> 34:</span> Write-Host -f Green <span style="color: #006080;">" Entering SQL Loop Now..."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum35" style="color: #606060;"> 35:</span> ######################### END SharePoint Loop ##################################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum36" style="color: #606060;"> 36:</span> ######################### START SQL Loop ##################################</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum37" style="color: #606060;"> 37:</span> [System.Reflection.Assembly]::LoadWithPartialName(<span style="color: #006080;">"Microsoft.SqlServer.SMO"</span>)  | out-null</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum38" style="color: #606060;"> 38:</span> [System.Reflection.Assembly]::LoadWithPartialName(<span style="color: #006080;">"Microsoft.SqlServer.SMOExtended"</span>)  | out-null</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum39" style="color: #606060;"> 39:</span> [Reflection.Assembly]::LoadWithPartialName(<span style="color: #006080;">"Microsoft.SqlServer.ConnectionInfo"</span>) | Out-Null</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum40" style="color: #606060;"> 40:</span> [Reflection.Assembly]::LoadWithPartialName(<span style="color: #006080;">"Microsoft.SqlServer.SmoEnum"</span>) | Out-Null</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum41" style="color: #606060;"> 41:</span> #get server defaults <span style="color: #0000ff;">for</span> Backup, MDF and LDF Locations</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum42" style="color: #606060;"> 42:</span> $smosql=New-Object ('Microsoft.SqlServer.Management.Smo.Server') $sqlserver</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum43" style="color: #606060;"> 43:</span> $ServerDefaultBackupLocation = $smosql.Settings.BackupDirectory </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum44" style="color: #606060;"> 44:</span> Write-Host -f green <span style="color: #006080;">"Captured Default Backup Directory: "</span> $ServerDefaultBackupLocation</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum45" style="color: #606060;"> 45:</span> $GetMDFFileLocation = $smosql.MasterDBPath</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum46" style="color: #606060;"> 46:</span> $GetLDFFileLocation = $smosql.MasterDBLogPath</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum47" style="color: #606060;"> 47:</span> $timestamp = Get-Date -format yyyyMMddHHmmss</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum48" style="color: #606060;"> 48:</span> # Construct a new Backup File name <span style="color: #0000ff;">to</span> avoid any conflics</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum49" style="color: #606060;"> 49:</span> $bkSetName = $ServerDefaultBackupLocation +<span style="color: #006080;">"\CA_Backup_DB_"</span>+$timestamp +  <span style="color: #006080;">".bak"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum50" style="color: #606060;"> 50:</span> # Creating Backup Statement <span style="color: #0000ff;">for</span> Database and Transaction Log Backup</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum51" style="color: #606060;"> 51:</span> [String] $bkupstmt =<span style="color: #006080;">"BACKUP DATABASE ["</span> + $CACurrentdb + <span style="color: #006080;">"]</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum52" style="color: #606060;"> 52:</span> TO  DISK = N'" + $bkSetName + <span style="color: #006080;">"' WITH NOFORMAT, NOINIT, NAME = N'SharePoint_AdminContent_BackUp', SKIP, NOREWIND, NOUNLOAD, STATS = 10</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum53" style="color: #606060;"> 53:</span> GO</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum54" style="color: #606060;"> 54:</span> BACKUP LOG [" + $CACurrentdb + <span style="color: #006080;">"] </span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum55" style="color: #606060;"> 55:</span> TO  DISK = N'" + $bkSetName + <span style="color: #006080;">"' WITH NOFORMAT, NOINIT, NAME = N'SharePoint_AdminContent_BackUp', SKIP, NOREWIND, NOUNLOAD, STATS = 10</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum56" style="color: #606060;"> 56:</span> GO"</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum57" style="color: #606060;"> 57:</span> # Firing the SQL Query</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum58" style="color: #606060;"> 58:</span> Invoke-Sqlcmd -Query $bkupstmt -ServerInstance $sqlserver</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum59" style="color: #606060;"> 59:</span> Write-Host -F Green <span style="color: #006080;">"Backup Completed Successfully"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum60" style="color: #606060;"> 60:</span> # Start Restore Operation</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum61" style="color: #606060;"> 61:</span> #Grab Logical File Names from Backup Set</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum62" style="color: #606060;"> 62:</span> $res = new-object Microsoft.SqlServer.Management.Smo.Restore</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum63" style="color: #606060;"> 63:</span> $res.Devices.AddDevice($bkSetName, [Microsoft.SqlServer.Management.Smo.DeviceType]::File)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum64" style="color: #606060;"> 64:</span> $LogicalDataFileName = $res.ReadFileList($smosql).Rows[0][<span style="color: #006080;">"LogicalName"</span>]</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum65" style="color: #606060;"> 65:</span> $LogicalLogFileName = $res.ReadFileList($smosql).Rows[1][<span style="color: #006080;">"LogicalName"</span>]</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum66" style="color: #606060;"> 66:</span> #Get New Content DB Name from User</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum67" style="color: #606060;"> 67:</span> $NewContentDBName = Read-Host <span style="color: #006080;">"Enter the name of the New Content Database "</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum68" style="color: #606060;"> 68:</span> # Start Restore Operation... Create the Query</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum69" style="color: #606060;"> 69:</span> [String] $restoreStmt = <span style="color: #006080;">"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum70" style="color: #606060;"> 70:</span> RESTORE DATABASE [" + $NewContentDBName + <span style="color: #006080;">"] FROM DISK = N'"</span>+ $bkSetName+<span style="color: #006080;">"' WITH FILE = 1, MOVE N'"</span> + $LogicalDataFileName + <span style="color: #006080;">"' </span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum71" style="color: #606060;"> 71:</span> TO N'"+ $GetMDFFileLocation +<span style="color: #006080;">"\"</span>+ $NewContentDBName + <span style="color: #006080;">".mdf', MOVE N'"</span>+ $LogicalLogFileName + <span style="color: #006080;">"' </span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum72" style="color: #606060;"> 72:</span> TO N'" + $GetLDFFileLocation +<span style="color: #006080;">"\"</span> + $NewContentDBName + <span style="color: #006080;">"_log.LDF', NORECOVERY, NOUNLOAD, STATS = 10</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum73" style="color: #606060;"> 73:</span> GO</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum74" style="color: #606060;"> 74:</span> RESTORE LOG ["+ $NewContentDBName +<span style="color: #006080;">"] FROM DISK = N'"</span>+ $bkSetName +<span style="color: #006080;">"' WITH FILE = 2, NOUNLOAD, STATS = 10</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum75" style="color: #606060;"> 75:</span> GO"</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum76" style="color: #606060;"> 76:</span> # Fire the SQL Query</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum77" style="color: #606060;"> 77:</span> Invoke-Sqlcmd -Query $restoreStmt -ServerInstance $SQLServer</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum78" style="color: #606060;"> 78:</span> Write-Host -f Green <span style="color: #006080;">"Retore Completed Successfully... "</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum79" style="color: #606060;"> 79:</span> # END SQL Loop</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum80" style="color: #606060;"> 80:</span> # Back <span style="color: #0000ff;">to</span> SP Loop <span style="color: #0000ff;">to</span> attach the new content DB <span style="color: #0000ff;">to</span> Central Admin Site</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum81" style="color: #606060;"> 81:</span> # First - Dismounting DB</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum82" style="color: #606060;"> 82:</span> Dismount-SPContentDatabase -Identity (Get-SPContentDatabase -WebApplication $CA) -Confirm:$<span style="color: #0000ff;">false</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum83" style="color: #606060;"> 83:</span> Mount-SPContentDatabase $NewContentDBName -DatabaseServer $SQLServer -WebApplication $CA</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum84" style="color: #606060;"> 84:</span> Write-Host -f green <span style="color: #006080;">"New Content Database Attached to Central Admin Site.</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum85" style="color: #606060;"> 85:</span> "</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum86" style="color: #606060;"> 86:</span> # reset IIS</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum87" style="color: #606060;"> 87:</span> Write-Host -f green <span style="color: #006080;">"Running IISRESET now..."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum88" style="color: #606060;"> 88:</span> iisreset</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum89" style="color: #606060;"> 89:</span> $RemoveOption = Read-Host <span style="color: #006080;">"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum90" style="color: #606060;"> 90:</span> Choose Remove Database Option:</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum91" style="color: #606060;"> 91:</span> 1 - Remove (DELETES the Database from SQL)</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum92" style="color: #606060;"> 92:</span> 2 - Exit (Do Nothing)"</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum93" style="color: #606060;"> 93:</span> <span style="color: #0000ff;">IF</span> ($RemoveOption -eq '1') { </pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum94" style="color: #606060;"> 94:</span> [String] $DropDB = <span style="color: #006080;">"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum95" style="color: #606060;"> 95:</span> ALTER DATABASE ["+ $CACurrentdb + <span style="color: #006080;">"]</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum96" style="color: #606060;"> 96:</span> SET SINGLE_USER WITH ROLLBACK IMMEDIATE;</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum97" style="color: #606060;"> 97:</span> DROP DataBase [" + $CACurrentdb+ <span style="color: #006080;">"]"</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum98" style="color: #606060;"> 98:</span> Invoke-Sqlcmd -Query $DropDB -ServerInstance $SQLServer</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum99" style="color: #606060;"> 99:</span> Write-Host -F green <span style="color: #006080;">"Database Removed from SQL"</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum100" style="color: #606060;"> 100:</span> <span style="color: #0000ff;">Else</span> {Write-Host -f Yellow <span style="color: #006080;">"Exiting Remove Operation... Database was not Dropped from SQL Server."</span>}</pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: white;"><span id="lnum101" style="color: #606060;"> 101:</span> Write-Host -F Green <span style="color: #006080;">"All Opearation Completed Successfully."</span></pre>
<!--CRLF-->
<pre style="margin: 0em; padding: 0px; width: 100%; text-align: left; color: black; line-height: 12pt; overflow: visible; font-family: 'Courier New', courier, monospace; font-size: 8pt; direction: ltr; background-color: #f4f4f4;"><span id="lnum102" style="color: #606060;"> 102:</span> #################### END SCRIPT ####################</pre>
<!--CRLF--></div>
</div>
<p>&nbsp;</p>
<p>Cheers <img class="wlEmoticon wlEmoticon-smile" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/61/33/metablogapi/5861.wlEmoticon-smile_161DDC1C.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-61-33-metablogapi/5861.wlEmoticon_2D00_smile_5F00_161DDC1C.png" alt="Smile" /></p>
<p>Priyo</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/38/66/58/Scripts.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-38-66-58/Scripts.zip">Scripts.zip</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>