<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Windows Server 2012 &#8211; Other Things</title>
	<atom:link href="https://blog.adamzolo.com/tag/windows-server-2012/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.adamzolo.com</link>
	<description>Blog about Things by Adam Zolotarev</description>
	<lastBuildDate>Sun, 11 May 2014 02:37:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Migrating Windows Server 2003 to 2012</title>
		<link>https://blog.adamzolo.com/migrating-windows-server-2003-2012/</link>
					<comments>https://blog.adamzolo.com/migrating-windows-server-2003-2012/#comments</comments>
		
		<dc:creator><![CDATA[Adam Zolo]]></dc:creator>
		<pubDate>Sun, 11 May 2014 02:37:46 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<guid isPermaLink="false">http://eazolo.com/blog/?p=50</guid>

					<description><![CDATA[This is an overview of my effort to upgrade some of our old 2003 servers to Windows Server 2012. It is quite possible there are better ways to accomplish this, as I’m just a developer and server upgrade is not something I do… well it was the first time I did it. Migrating IIS 6.0&#8230;<p><a class="more-link" href="https://blog.adamzolo.com/migrating-windows-server-2003-2012/" title="Continue reading &#8216;Migrating Windows Server 2003 to 2012&#8217;">Continue reading <span class="meta-nav">&#8594;</span></a></p>]]></description>
										<content:encoded><![CDATA[<p><span style="line-height: 1.5;">This is an overview of my effort to upgrade some of our old 2003 servers to Windows Server 2012. It is quite possible there are better ways to accomplish this, as I’m just a developer and server upgrade is not something I do… well it was the first time I did it.</span></p>
<p><strong><span style="line-height: 1.5;">Migrating IIS 6.0 to 8.5</span></strong></p>
<p>First, I needed to migrate IIS applications, app pools and app pools account. In order to automate this as much as possible, I installed Microsoft Web Platform installer on 2003 and Web Deploy 3.5 (The Web Deployment Tool). I used this guide <a href="http://www.iis.net/learn/publish/using-web-deploy/synchronize-iis-60-web-sites">http://www.iis.net/learn/publish/using-web-deploy/synchronize-iis-60-web-sites</a> to help me.</p>
<p>Create backup on IIS6: iisback /backup /b PreWebDeploy</p>
<p>View dependencies on IIS 6: msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1</p>
<p>Create package on IIS 6:</p>
<p>&#8220;C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe&#8221; -verb:sync  -source:metakey=lm/w3svc/1 -dest:package=C:\YourExportedPackage.zip,encryptPassword=YourPassword  -enableLink:AppPoolExtension</p>
<p>The password is required since we are exporting App Pools and the identities they use (by specifying enableLink:AppPoolExtension).</p>
<p>Run whatif analysis on IIS 2012:</p>
<p>&#8220;C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe&#8221; -verb:sync -source:package=c:\YourPackage.zip,encryptPassword=YourPassword -dest:metakey=lm/w3svc/1 -whatif &gt; msdeploysync.log  -enableLink:AppPoolExtension</p>
<p>This will run what-if analysis without actually migrating anything. Check the log and install needed dependencies. Once all dependencies are installed, run the actual migration:</p>
<p>&#8220;C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe&#8221; -verb:sync -source:package=C:\YourPackage.zip,encryptPassword=YourPassword -dest:metakey=lm/w3svc/1 -enableLink:AppPoolExtension</p>
<p><strong> Another way (this does not copy the content, so you have to copy the folders with sites contents):</strong><br />
[appcmd seems to be available only starting with IIS7. Thanks to Nick for the correction.]<br />
Run On Source:</p>
<p>C:\Windows\System32\inetsrv\appcmd list apppool /config /xml &gt; C:\ apppools.xml</p>
<p>C:\Windows\System32\inetsrv\appcmd list site /config /xml &gt; C: \sites.xml</p>
<p>Run On Destination:</p>
<p>C:\Windows\System32\inetsrv\appcmd add apppool /in &lt; C:\apppools.xml</p>
<p>C:\Windows\System32\inetsrv\appcmd add site /in &lt; C: \sites.xml</p>
<p><strong>Migrating Shares and related permissions</strong></p>
<p>First, create all of the folders for the shares. Then export the whole folder from the registry: Created registry export for the whole folder from 2003: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Shares</p>
<p>Restore it on the destination server. This almost takes care of all the shares, except for NTFS permissions.</p>
<p>To copy NTFS permissions run on source:</p>
<p>Icacls C:\YourFolderThatNeedsNtfsPermissionesCopied  /save ExportedFileWithPermissions.txt /t</p>
<p>Run on destination:</p>
<p>Icacls C:\ /restore ExportedFileWithPermissions.txt</p>
<p>&nbsp;</p>
<p><strong>Migrate Users and Groups</strong></p>
<p>First, install Windows Server Migration. Then use SmigDeploy to migrate users and groups.</p>
<p>Run on Destination (some parameters may be different for other configurations. Google SmigDeploy):</p>
<p>SmigDeploy.exe /package /architecture X86 /os WS03 /path C:\userMigrationTool</p>
<p>Go to Source server and run from userMigrationTool folder (created in a previous step). This will register SmigDeploy on source.</p>
<p>.\Smigdeploy.exe</p>
<p>Run on source:</p>
<p>Export-SmigServerSetting -User All -Group -Path C:\YourMIgrationFolder -Verbose</p>
<p>It’ll ask you a password. Pick one.</p>
<p>Run on destination:</p>
<p>Import-SmigServerSetting -Group -Path C:\YourMigrationFolder -Verbose</p>
<p>&nbsp;</p>
<p><strong>COM</strong></p>
<p>Since I needed to migrate some COM’s, I had to add a feature COM+ Network Access to enable COM.</p>
<p><strong>Tasks</strong></p>
<p>Open Task Scheduler on destination.</p>
<p>Go to Action &#8211; Connect to another Computer. Connect to your source server.</p>
<p>Export the tasks to a temporary location as xml files. I didn&#8217;t see a way to export them all at once, so I did it one by one.</p>
<p>Open Task Scheduler on your destination again. Import the tasks.</p>
<p>It may pop up a message saying the account that you used to set up the task needs &#8220;Log on as batch job&#8221; privileges. In that case, follow a few more steps:</p>
<p style="color: #2a2a2a;">Run secpol.msc /s</p>
<p style="color: #2a2a2a;">Select &#8220;Local Policies&#8221; in MSC snap in</p>
<p style="color: #2a2a2a;"> Select &#8220;User Rights Assignment&#8221;</p>
<p style="color: #2a2a2a;"> Right click on &#8220;Log on as batch job&#8221; and select Properties</p>
<p style="color: #2a2a2a;">Click &#8220;Add User or Group&#8221;, and include the relevant user.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.adamzolo.com/migrating-windows-server-2003-2012/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
			</item>
	</channel>
</rss>
