<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Fixing IT</title>
	<atom:link href="http://fixingit.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fixingit.wordpress.com</link>
	<description>Solutions to problems faced by real world IT Professionals</description>
	<lastBuildDate>Wed, 25 Jan 2012 22:35:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='fixingit.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Fixing IT</title>
		<link>http://fixingit.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://fixingit.wordpress.com/osd.xml" title="Fixing IT" />
	<atom:link rel='hub' href='http://fixingit.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Exchange 2010 Missing Server Configuration in EMC</title>
		<link>http://fixingit.wordpress.com/2011/07/12/65/</link>
		<comments>http://fixingit.wordpress.com/2011/07/12/65/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 21:23:59 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=65</guid>
		<description><![CDATA[Just worked on a test(luckily) Exchange 2010 server with a customer.  When they opened the Exchange Management Console, the Server Configuration was missing and they couldn’t change the properties of any the mailboxes. When they opened the mailbox properties they saw these little lock symbols all over the place. When they ran the command “Get-Mailbox” [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=65&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just worked on a test(luckily) Exchange 2010 server with a customer.  When they opened the Exchange Management Console, the Server Configuration was missing and they couldn’t change the properties of any the mailboxes. When they opened the mailbox properties they saw these little lock symbols all over the place.</p>
<p style="text-align:center;"><a href="http://fixingit.files.wordpress.com/2011/07/mailboxpropertylocked.png"><img class="size-full wp-image-66 aligncenter" title="MailboxPropertyLocked" src="http://fixingit.files.wordpress.com/2011/07/mailboxpropertylocked.png?w=480" alt=""   /></a></p>
<p>When they ran the command “Get-Mailbox” in the Exchange Management Shell, they only saw a single mailbox.</p>
<p>So we tried all sorts of things. Then they mentioned the installed Outlook on the server and set it up to access a mailbox. Just happened to be the   I tried deleting the mail profile, uninstalling Outlook, logging off and back in, no dice.  Then I found out that Windows caches credentials and you have to clear those out using the below procedure:</p>
<ol>
<li>Open a command prompt using “Run as Administrator”</li>
<li>Run the command “control keymgr.dll”</li>
<li>Click “Back up vault” and follow the prompts to back everything up.</li>
<li>Find and remove all credentials that have to do with Exchange or the user setup for Outlook.</li>
</ol>
<p>After that everything returned to normal.</p>
<p>So if you want Outlook on an Exchange server use OWA.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=65&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2011/07/12/65/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/07/mailboxpropertylocked.png" medium="image">
			<media:title type="html">MailboxPropertyLocked</media:title>
		</media:content>
	</item>
		<item>
		<title>Set Owner with PowerShell: “The security identifier is not allowed to be the owner of this object”</title>
		<link>http://fixingit.wordpress.com/2011/07/08/set-owner-with-powershell-%e2%80%9cthe-security-identifier-is-not-allowed-to-be-the-owner-of-this-object%e2%80%9d/</link>
		<comments>http://fixingit.wordpress.com/2011/07/08/set-owner-with-powershell-%e2%80%9cthe-security-identifier-is-not-allowed-to-be-the-owner-of-this-object%e2%80%9d/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 19:40:54 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=57</guid>
		<description><![CDATA[I&#8217;ve written several PowerShell scripts to help customers adjust permissions to their directory structures when migrating from other file servers(Linux/Samba, Novell OES/Netware, etc).  Part of these scripts includes assigning ownership for the user.  While this tends to take a long time quotas and file reporting are worthless if the administrator that copied everything is assigned [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=57&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written several PowerShell scripts to help customers adjust permissions to their directory structures when migrating from other file servers(Linux/Samba, Novell OES/Netware, etc).  Part of these scripts includes assigning ownership for the user.  While this tends to take a long time quotas and file reporting are worthless if the administrator that copied everything is assigned as the owner.</p>
<p>Recently I tried to adapt one of these scripts for a customer, but when I ran it it failed with the error: &#8220;The security identifier is not allowed to be the owner of this object&#8221;</p>
<p>A quick internet search found lots of people saying basically this can&#8217;t be done with PowerShell.  What!!! I know for a fact these scripts had worked before.  What&#8217;s the deal?   After a lot of testing and beating my head against the wall I figure out I was trying to do something different.  Previously I had run my scripts against the UNC path (eg. \\servername\share\directory), but this time I was trying to run it on a local directory using the drive path (E:\Share\Directory).</p>
<p>Could it be that simple? Yes.  I ran the command again using the UNC path and the script worked as it did before.</p>
<p>Here is an example script to set the owner of a directory or file to test the above:</p>
<blockquote><p>function pathPrompt {</p>
<p>$tempPath = $null<br />
$tempPath = Read-Host &#8216;Please enter the path of thedirectory (e.g. &#8220;\\file\vol1\users\example&#8221;&#8216;<br />
return $tempPath<br />
}</p>
<p>$username=&#8221;exampleuser&#8221;<br />
$domain=&#8221;domain&#8221;<br />
$ID = new-object System.Security.Principal.NTAccount($domain, $username)</p>
<p>$path = pathPrompt</p>
<p>write-host $path</p>
<p>$acl = get-acl $path<br />
$acl.SetOwner($ID)<br />
set-acl -path $path -aclObject $acl</p></blockquote>
<p>Save the above to a file with a .PS1 extension, change the $username and $domain variables, and run it (make sure you set-executionpolicy to unrestricted and PowerShell as administrator). It will prompt for a path. It will then write the path to powershell and then set the owner if it can.</p>
<p>Below is an example of running it against a local path and a UNC path.</p>
<p><a href="http://fixingit.files.wordpress.com/2011/07/set-owner.png"><img class="aligncenter size-full wp-image-62" title="Set-Owner" src="http://fixingit.files.wordpress.com/2011/07/set-owner.png?w=480" alt=""   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=57&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2011/07/08/set-owner-with-powershell-%e2%80%9cthe-security-identifier-is-not-allowed-to-be-the-owner-of-this-object%e2%80%9d/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/07/set-owner.png" medium="image">
			<media:title type="html">Set-Owner</media:title>
		</media:content>
	</item>
		<item>
		<title>Disabling RDP Network Level Authentication (NLA) remotely via the registry</title>
		<link>http://fixingit.wordpress.com/2011/07/06/disabling-rdp-network-level-authentication-nla-remotely-via-the-registry/</link>
		<comments>http://fixingit.wordpress.com/2011/07/06/disabling-rdp-network-level-authentication-nla-remotely-via-the-registry/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 22:57:22 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[network level authentication]]></category>
		<category><![CDATA[nla]]></category>
		<category><![CDATA[rdp]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=49</guid>
		<description><![CDATA[So I logged into a server that was setup by another administrator using RDP to configure some software.  For whatever reason it is requesting a reboot, so I let it reboot before I start my work.  After the server comes back up I attempt to connect and get a &#8220;The connection cannot continue because the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=49&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I logged into a server that was setup by another administrator using RDP to configure some software.  For whatever reason it is requesting a reboot, so I let it reboot before I start my work.  After the server comes back up I attempt to connect and get a &#8220;The connection cannot continue because the identity of the remote computer cannot be verified&#8221; error.</p>
<p><a href="http://fixingit.files.wordpress.com/2011/07/nla-error.png"><img class="aligncenter size-full wp-image-52" title="NLA error" src="http://fixingit.files.wordpress.com/2011/07/nla-error.png?w=480&#038;h=107" alt="" width="480" height="107" /></a></p>
<p>From experience I knew this means that Network Level Authentication (NLA) is enabled.  NLA is a nice security feature if you have an internal Certificate Authority and time to configure auto-enrollment, but most smaller organization opt for the &#8220;less secure&#8221; option.  Since I have no console level access I&#8217;d have to wait for an onsite technician to change it to allow for &#8220;less secure&#8221; connectivity.</p>
<p>But I can remote into another server on the same local network and connect to the registry.  A quick google search failed to identify the key/value to change so I did some digging and testing and found it.</p>
<p>To disable NLA remotely:</p>
<ol>
<li> Open regedit on another computer on the same network.</li>
<li>Under the File menu click &#8220;Connect Network Registry&#8230;&#8221;</li>
<li>Enter your computer name and click Ok.  If this fails to connect you may be out of luck.</li>
<li>Scroll down in the left pane to find the newly added server. Navigate to this Key:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp</li>
<li>Find the value &#8220;SecurityLayer&#8221; and change the data to 0  (that is a zero).</li>
<li>Voila, I was able to remote in without issue.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=49&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2011/07/06/disabling-rdp-network-level-authentication-nla-remotely-via-the-registry/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/07/nla-error.png" medium="image">
			<media:title type="html">NLA error</media:title>
		</media:content>
	</item>
		<item>
		<title>vSphere Alarm emails to multiple addresses</title>
		<link>http://fixingit.wordpress.com/2011/05/12/vsphere-alarm-emails-to-multiple-addresses/</link>
		<comments>http://fixingit.wordpress.com/2011/05/12/vsphere-alarm-emails-to-multiple-addresses/#comments</comments>
		<pubDate>Thu, 12 May 2011 19:29:57 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=42</guid>
		<description><![CDATA[This will be a quick post.  I was trying to find/remember the syntax to add multiple email addresses to a single &#8220;Send a notification email&#8221; action and I couldn&#8217;t find it documented anywhere. So I tested and confirmed that all that is required is using a &#8220;;&#8221; between the email addresses as shown below.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=42&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This will be a quick post.  I was trying to find/remember the syntax to add multiple email addresses to a single &#8220;Send a notification email&#8221; action and I couldn&#8217;t find it documented anywhere. So I tested and confirmed that all that is required is using a &#8220;;&#8221; between the email addresses as shown below.</p>
<p><a href="http://fixingit.files.wordpress.com/2011/05/vspherealarms1.png"><img class="aligncenter size-full wp-image-44" title="vSphereAlarms" src="http://fixingit.files.wordpress.com/2011/05/vspherealarms1.png?w=480&#038;h=242" alt="" width="480" height="242" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=42&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2011/05/12/vsphere-alarm-emails-to-multiple-addresses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/05/vspherealarms1.png" medium="image">
			<media:title type="html">vSphereAlarms</media:title>
		</media:content>
	</item>
		<item>
		<title>Mirroring SQL Databases</title>
		<link>http://fixingit.wordpress.com/2011/01/03/mirroring-sql-databases/</link>
		<comments>http://fixingit.wordpress.com/2011/01/03/mirroring-sql-databases/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 18:49:18 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[mirroring]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=27</guid>
		<description><![CDATA[Recently I&#8217;ve been setting up mirroring of Microsoft SQL databases.  While the steps required are well documented on Technet (which is where I learned), they are spread over several pages.  There is no single list of steps so I decided to put one together documenting how I setup mirroring using SQL Server Management Studio. What [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=27&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://fixingit.files.wordpress.com/2011/01/operatingmode.jpg"></a>Recently I&#8217;ve been setting up mirroring of Microsoft SQL databases.  While the steps required are well documented on Technet (which is where I learned), they are spread over several pages.  There is no single list of steps so I decided to put one together documenting how I setup mirroring using SQL Server Management Studio.</p>
<p>What I&#8217;m not going to do is detail all the requirements or possible ways to set mirroring up.  For this information Technet is probably still your best resource.  So, the process below makes certain assumptions:</p>
<ol>
<li>You&#8217;ve already installed and configured the same version of SQL on two servers.</li>
<li>These servers should have the drive setup so that the paths for database and logs files can match on both server. For example, if databases are stored at D:\SQLData on the primary server, this path needs to be available on the secondary server.</li>
<li>These servers both members of the same domain.  This is not a hard requirement of mirroring, but it does make the process easier.  If your servers are in different domains see TechNet for the process of setting up security.</li>
<li>The SQL server service is running as the same domain user on both servers. Again, not a hard requiremnet but it&#8217;s how I&#8217;ve done it.</li>
<li>I am not including setting up a witness server or automatic failover.  For a configuration with these options, consult technet.</li>
</ol>
<p>The basic process involves 3 steps, backing up from the primary, restoring to the secondary and configuring the mirroring.</p>
<h2>Backup the database on the Primary server</h2>
<ol>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Open SQL Server Management Studio and connect as a user with appropriate permissions (probably sysadmin).</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;"> </span></span><span style="font-size:small;"><span style="font-family:Calibri;">Right-click on the database you wish to mirror and select Tasks-&gt;Back Up…</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Add a backup destination file with a name like database.bak.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Leave the default options selected.</span></span>
<ol>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Backup type: full</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Overwrite media:</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Backup to the existing media set</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Append to the existing backup set</span></span></li>
</ol>
</li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Click OK and let the backup run.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Right-click on the database and again choose Tasks-&gt;Back Up…</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Change the Backup type: to Transaction log.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Check that the destination file is the same.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Click OK and let it backup again.</span></span></li>
</ol>
<div id="_mcePaste" class="mcePaste" style="position:absolute;width:1px;height:1px;overflow:hidden;top:0;left:-10000px;">﻿</div>
<h2>Restore the database on the Mirror (destination) server with “No Recovery”</h2>
<ol>
<li>Copy the backup file “database.bak” to the Mirror server, preferably in the default SQL backup directory.</li>
<li>Open SQL Server Management Studio and connect to the Mirror server as a user with appropriate permissions (probably sysadmin).</li>
<li>Right-click the “Databases” object and select “Restore Databases.”</li>
<li>Under “Source to restore” click the “From device” radio button, then click the browse button to the right.</li>
<li>Click Add and select the backup file you copied from the Primary server. Click OK.</li>
<li>Select both the full and transaction log backups you created earlier.</li>
<li>Under the Destination for restore, use the drop down box to select the database name. This should match the database name on the primary server.</li>
<li>Change to the Options page.</li>
<li>Change the recovery state to “RESTORE WITH NORECOVERY” as shown below.<br />
<img class="aligncenter size-full wp-image-31" title="NoRecoveryOption" src="http://fixingit.files.wordpress.com/2011/01/pic11.jpg?w=480&#038;h=62" alt="" width="480" height="62" /></li>
<li>Click OK to restore the database.</li>
</ol>
<h2>Configure Mirroring</h2>
<ol>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Return the SQL Management studio connected to the Primary server.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Right-click on the database and choose Tasks-&gt;Mirror…</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Click the Configure Security button.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Click next on the starting page.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Choose whether or not to include a witness server instance. For this example we will choose no. Click next.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Click Next on the Principal Server Instance page.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Select or browse so the “Mirror server instance”  shows the name of the desired mirror server. </span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Click the Connect button to the right. Enter credentials (if necessary) to connect again with sysadmin privileges.  Click connect.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">Enter the correct service accounts.</span></span>
<ol>
<li><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;">I’ve always configured mirroring between SQL servers in the same domain, with SQL services running as the same user.  So I always enter something like the below.<br />
<a href="http://fixingit.files.wordpress.com/2011/01/serviceaccounts1.jpg"><img class="aligncenter size-full wp-image-33" title="serviceaccounts" src="http://fixingit.files.wordpress.com/2011/01/serviceaccounts1.jpg?w=480" alt=""   /></a></span></li>
</ol>
</li>
<li> <span style="font-size:small;"><span style="font-family:Calibri;">Click Next then Finish.</span></span></li>
<li><span style="font-size:small;"><span style="font-family:Calibri;">You should then get a Success box. Click close.</span></span></li>
<li><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;">You will then be prompted with the below message. If you want mirror using the default Operating mode (High Safety without automatic failover) then click Start Mirror. For this example I will choose Do Not Start Mirroring.<br />
<a href="http://fixingit.files.wordpress.com/2011/01/mirroringproperties.jpg"><img class="aligncenter size-full wp-image-34" title="mirroringproperties" src="http://fixingit.files.wordpress.com/2011/01/mirroringproperties.jpg?w=480&#038;h=200" alt="" width="480" height="200" /></a></span></li>
<li>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;">Change to the desired Operating Mode. (Below I’ve changed to High Performance which I believe requires SQL Enterprise)<img class="aligncenter size-full wp-image-35" title="operatingmode" src="http://fixingit.files.wordpress.com/2011/01/operatingmode.jpg?w=480&#038;h=90" alt="" width="480" height="90" /></span></p>
</li>
<li>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;">Click the &#8220;Start Mirroring&#8221; button.</span></p>
</li>
<li>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;">The Status should change to the below:<a href="http://fixingit.files.wordpress.com/2011/01/syncstatus.jpg"><img class="aligncenter size-full wp-image-36" title="syncstatus" src="http://fixingit.files.wordpress.com/2011/01/syncstatus.jpg?w=480" alt=""   /></a></span><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;"> </span></p>
</li>
</ol>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;">Congratulations, your database is now mirrored.</span></p>
<p class="MsoNormal" style="margin:0 0 10pt;"><span style="font-size:small;"><span style="font-family:Calibri;">Notes: </span></span></p>
<ul>
<li><span style="line-height:115%;font-family:&quot;">With some backup software it may be necessary to recreate you backup jobs after configuring mirroring.</span></li>
</ul>
<p class="MsoNormal" style="margin:0 0 10pt;">&nbsp;</p>
<div class="MsoNormal" style="margin:0 0 10pt;"><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;"> </span></div>
<p><span style="line-height:115%;font-family:Calibri,sans-serif;font-size:11pt;"> </span></p>
<p class="MsoNormal" style="margin:0 0 10pt;">&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=27&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2011/01/03/mirroring-sql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/01/pic11.jpg" medium="image">
			<media:title type="html">NoRecoveryOption</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/01/serviceaccounts1.jpg" medium="image">
			<media:title type="html">serviceaccounts</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/01/mirroringproperties.jpg" medium="image">
			<media:title type="html">mirroringproperties</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/01/operatingmode.jpg" medium="image">
			<media:title type="html">operatingmode</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2011/01/syncstatus.jpg" medium="image">
			<media:title type="html">syncstatus</media:title>
		</media:content>
	</item>
		<item>
		<title>VBScript to create a My Documents Variable</title>
		<link>http://fixingit.wordpress.com/2010/09/23/vbscript-to-create-a-my-documents-variable/</link>
		<comments>http://fixingit.wordpress.com/2010/09/23/vbscript-to-create-a-my-documents-variable/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 20:25:53 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[redirected]]></category>
		<category><![CDATA[vbscript]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=19</guid>
		<description><![CDATA[I was recreating a login script for a client that mapped a drive to the location of their redirected My Documents.  Because they were in the middle of a migration the My Documents could be in a different spot depending on if a user had been migrated to a new environment or not. So I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=19&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was recreating a login script for a client that mapped a drive to the location of their redirected My Documents.  Because they were in the middle of a migration the My Documents could be in a different spot depending on if a user had been migrated to a new environment or not. So I needed to be able to query the current location of the My Docs, much like the %userprofile% shows the path to the current profile.</p>
<p>Below is a chunk of VBScript I cobbled together from a variety of sources including <a href="http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/registry/#ReadStringDword.htm">ActiveXperts</a> that reads the appropriate registry key value of the user that runs the script.  This chunk just outputs the path to the command line but the <span style="color:#ff0000;">myDocsPath</span> variable could also be used to map a drive.</p>
<p>(Please note that the line that starts &#8220;Set oReg=GetObject&#8230;.&#8221; and the line below it need to be a single line)</p>
<p>&#8212;-Copy Everything Below&#8212;&#8211;</p>
<pre><span style="color:#ff0000;">const HKEY_CURRENT_USER = &amp;H80000001
const HKEY_LOCAL_MACHINE = &amp;H80000002
strComputer = "."
Set StdOut = WScript.StdOut
 
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &amp; strComputer &amp;
</span><span style="color:#ff0000;"> "\root\default:StdRegProv")</span>

<span style="color:#ff0000;">strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
strValueName = "Personal"
oReg.GetExpandedStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,myDocsPath
StdOut.WriteLine "Current My Docs path is: " &amp; myDocsPath</span></pre>
<p> &#8212;-Copy Everything Above&#8212;&#8211;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=19&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2010/09/23/vbscript-to-create-a-my-documents-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Lists of Installed Applications</title>
		<link>http://fixingit.wordpress.com/2009/11/19/creating-lists-of-installed-applications/</link>
		<comments>http://fixingit.wordpress.com/2009/11/19/creating-lists-of-installed-applications/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 20:56:54 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Inventory and Assessment]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[inventory]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[network assessment]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/?p=15</guid>
		<description><![CDATA[Frequently while performing network assessments I need to assemble a list of all the programs installed on servers. Going to Add/Remove Programs and writing it down is a tedious process.  Installing applications like Belarc Advisor is a bit more intrusive then I want to be on another companies servers.  After some research today I found two [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=15&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Frequently while performing network assessments I need to assemble a list of all the programs installed on servers. Going to Add/Remove Programs and writing it down is a tedious process.  Installing applications like Belarc Advisor is a bit more intrusive then I want to be on another companies servers.  After some research today I found two solutions that work well:</p>
<h2>For XP and Server 2003</h2>
<p><a href="http://www.billsway.com/vbspage/ShowScript.asp?tgt=txtfiles/InstalledPrograms.txt">http://www.billsway.com/vbspage/ShowScript.asp?tgt=txtfiles/InstalledPrograms.txt</a></p>
<p>The above contains the contents of a vbscript. You copy the contents into a text file and save it with a .vbs extension.  You can then double-click it. It will prompt you for a computer name or IP address. When it finishes running it generates a file that contains a list of all the programs installed.  It seems to work great with Windows XP and 2003, but only returns a partial list for Windows 2008. </p>
<h2> For Vista, Windows 7, Server 2008 and 2008 R2</h2>
<p><a href="http://www.intowindows.com/how-to-get-list-of-installed-apps-in-vistawindows-7-without-any-software/">http://www.intowindows.com/how-to-get-list-of-installed-apps-in-vistawindows-7-without-any-software/</a></p>
<p>This link shows how to generate the list using wmi commands. It says it is for vista and windows 7, but seems to work on Server 2008 just fine. Unlike the vbscript, this must be run directly on the computer in question.</p>
<h3> Conclusion</h3>
<p>Both these methods seem to work well, but they do generate files on the system that need to be copied off to be useful.  If you are using them on someone elses computers I would advise you get explicit permission before using these tool. </p>
<h3>Unrelated but also helpful.</h3>
<p>If your assessment involves Dell servers, you might want to get the service tags for the servers.  Older Dells tend to put this sticker in inconvenient locations. Luckily you can query the servers for the tag using this handy vbscript.</p>
<p><a href="http://lazynetworkadmin.com/content/view/13/6/">http://lazynetworkadmin.com/content/view/13/6/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=15&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2009/11/19/creating-lists-of-installed-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Windows Server 2008 as a RADIUS Server for a Cisco ASA</title>
		<link>http://fixingit.wordpress.com/2009/09/08/using-windows-server-2008-as-a-radius-server-for-a-cisco-asa/</link>
		<comments>http://fixingit.wordpress.com/2009/09/08/using-windows-server-2008-as-a-radius-server-for-a-cisco-asa/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 21:49:04 +0000</pubDate>
		<dc:creator>Marquis Calmes</dc:creator>
				<category><![CDATA[ASA Firewalls]]></category>
		<category><![CDATA[Network Policy and Access Server]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[RADIUS]]></category>
		<category><![CDATA[Server 2008]]></category>

		<guid isPermaLink="false">http://fixingit.wordpress.com/2009/09/08/using-windows-server-2008-as-a-radius-server-for-a-cisco-asa/</guid>
		<description><![CDATA[Recently I needed to get a Cisco ASA 5510 to use a RADIUS Server on Server 2008 to authenticate Active Directory users for VPN access. The ASA was already configured to use a Server 2003 RADIUS server, so much of the below was just replicating the existing configuration on a 2008 server. I suspect many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=5&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to get a Cisco ASA 5510 to use a RADIUS Server on Server 2008 to authenticate Active Directory users for VPN access. The ASA was already configured to use a Server 2003 RADIUS server, so much of the below was just replicating the existing configuration on a 2008 server. I suspect many of the settings are less than ideal and some are unnecessary, but the below steps worked for now.</p>
<h2>Components</h2>
<ul>
<li>
<div>AD1:</div>
<ul>
<li>Windows Server 2008</li>
<li>Also the domain controller</li>
<li>IP: 192.168.1.10</li>
</ul>
</li>
<li>
<div>CiscoASA:</div>
<ul>
<li>ASA 5510 (though I believe these instructions should work for all ASA models)</li>
<li>IP: 192.168.1.2</li>
</ul>
</li>
</ul>
<h2>Cisco Configuration</h2>
<p>I performed the Cisco configuration using the ASDM management tool. The same configuration could be achieved via the command line interface, but I found the ASDM was more convenient for checking existing settings and then replicating.</p>
<p>Launch ASDM and connecting to the ASA, I went to the <strong>Configuration</strong> view.</p>
<h3>Create an IP Name object for the target</h3>
<ol>
<li>Under the <strong>Firewall</strong> section, expand the <strong>Objects</strong> link and select the <strong>IP Names</strong>.</li>
<li>Click the <strong>Add</strong> button at the top.</li>
<li>Enter a descriptive name, the IP address and a description of the server. For this server I used</li>
<li>Name: INT-AD1</li>
<li>IP: 192.168.1.10</li>
<li>Description: AD / RADIUS</li>
<li>Click OK and then Apply</li>
</ol>
<h3>Create a new AAA Server Group</h3>
<ol>
<li>Click the<strong> Remote Access VPN</strong> section.</li>
<li>Expand <strong>AAA Setup</strong> and select<strong> AAA Server Groups</strong>.</li>
<li>Click the <strong>Add</strong> button to the right of the AAA Server Groups section.</li>
<li>Give the server group a name, like TEST-AD, and make sure the <strong>RADIUS</strong> protocol is selected.</li>
<li>Accept the default for the other settings. And click OK</li>
</ol>
<h3>Add the RADIUS server to the Server Group.</h3>
<ol>
<li>Select the server group created in the step above.</li>
<li>Click the <strong>Add</strong> button to the right of <strong>Servers in the Select Group</strong>.</li>
<li>Under the <strong>Interface Name</strong> select the interface on the ASA that will have access to the RADIUS server, most likely <em>inside</em>.</li>
<li>Under <strong>Server Name or IP Address</strong> enter the IP Name you created for the RADIUS server above.</li>
<li>Skip to the <strong>Server Secret Key</strong> field and create a complex password. Make sure you document this as it is required when configuring the RADIUS server. Re-enter the secret in the <strong>Common Password</strong> field.</li>
<li>Leave the rest of the settings at the defaults and click <strong>Ok</strong>.</li>
</ol>
<h2>Setting Up RADIUS on Windows Server 2008</h2>
<p>This part gave me the most trouble. The documentation from Microsoft was somewhat vague and other resources I found using the trusty Google method listed steps and addition pieces I knew to be unnecessary.</p>
<p>To perform the below steps you need Administrator permissions to the server that will host the RADIUS server. You also will need permissions to &#8220;Register&#8221; the server in AD. I believe this requires Domain Admin privileges.</p>
<h3>Add the Network Policy Server function.</h3>
<ol>
<li>Connect to the Windows Server 2008 server and launch Server Manager.</li>
<li>Click the <strong>Roles</strong> object and then click the <strong>Add Roles</strong> link on the right.</li>
<li>Click <strong>Next</strong> on the Before You Begin page.</li>
<li>Select the <strong>Network Policy and Access Services</strong> role and click <strong>Next</strong>.</li>
<li>Under Role Service select only the <strong>Network Policy Server</strong> service and click <strong>Next</strong>.</li>
<li>Click <strong>Install</strong>.</li>
</ol>
<p> </p>
<p>After the role finishes installing you will need to set up the server using the Network Policy Server (NPS) management tool found under Administrative Tools.</p>
<h4>Registering the server.</h4>
<ol>
<li>After launching the NPS tool right-click on the entry <strong>NPS(Local)</strong> and click the <strong>Register Server in Active Directory</strong>.</li>
<li>Follow the default prompts.</li>
</ol>
<h4>Create a RADIUS client entry for the ASA.</h4>
<ol>
<li>Expand the RADIUS Clients and Servers folder.</li>
<li>Right-click on RADIUS Clients and select New RADIUS Client.</li>
<li>Create a Friendly Name for the ASA device. I used &#8220;CiscoASA&#8221; but if you had more than one you might want to make it more unique and identifiable. Make sure you document the Friendly Name used as it will be used later in some of the policies created.</li>
<li>Enter the Server Secret Key specified on during the ASA configuration in the Shared secret and Confirm shared secret field.</li>
<li>Leave the default values for the other settings and click OK. See Figure 1 for all the complete RADIUS Client properties.<br />
<img src="http://fixingit.files.wordpress.com/2009/09/090809_2148_usingwindow1.png?w=480" alt="" /></li>
</ol>
<p><span style="color:#4f81bd;font-size:9pt;"><strong>Figure 1<br />
</strong></span></p>
<h4>Create a Connection Request Policy.</h4>
<ol>
<li>Expand the <strong>Policies</strong> folder.</li>
<li>Right-click on the <strong>Connection Request Policies</strong> and click <strong>New</strong>.</li>
<li>Set the <strong>Policy Name</strong>to something meaningful. I used CiscoASA because this policy is geared specifically for that RADIUS client. Leave the <strong>Type of network access server</strong> as Unspecified and click <strong>Next</strong>.</li>
<li>Under <strong>Conditions</strong> click <strong>Add</strong>. Scroll down and select the <strong>Client Friendly Name</strong> condition and click <strong>Add…</strong></li>
<li>Specify the friendly name that you used when creating the RADIUS Client above. Click <strong>OK </strong>and <strong>Next</strong>.</li>
<li>On the next two pages leave the default settings and click <strong>Next</strong>.</li>
<li>Under the <strong>Specify a Realm Name</strong> select the <strong>Attribute</strong> option on the left. From the drop down menu next to <strong>Attribute:</strong> on the right select <strong>User-Name</strong>. Click <strong>Next</strong> again.</li>
<li>Review the settings on the next page and click <strong>Finish</strong>.</li>
</ol>
<h4>Create a Network Policy.</h4>
<ol>
<li>Right-click the <strong>Network Policy</strong> folder and click <strong>New</strong>.</li>
<li>Set the <strong>Policy Name</strong> to something meaningful. Leave the <strong>Type of network access server</strong> as Unspecified and click <strong>Next</strong>.</li>
<li>Under <strong>Conditions</strong> click <strong>Add</strong>.</li>
<li>Add a <strong>UsersGroup</strong> condition to limit access to a specific AD user group. You can use a generic group like <strong>Domain Users</strong> or create a group specifically to restrict access.</li>
<li>Add a <strong>Client Friendly Name</strong> condition and again specify the Friendly Name you used for your RADIUS client.</li>
<li>Click <strong>Next</strong>. Leave <strong>Access granted</strong> selected and click <strong>Next</strong> again.</li>
<li><span style="color:red;"><strong>(Important Step)</strong></span> On the authentication methods leave the default selection and add <strong>Unencrypted authentication (PAP, SPAP)</strong>.</li>
<li>Accept the default Constraints and click <strong>Next</strong>.</li>
<li>Accept the default Radius Settings and click <strong>Next</strong>. Review the settings and click <strong>Finish</strong>.</li>
</ol>
<h4>Restart the <strong>Network Policy Server</strong> service.</h4>
<ul>
<li>This may not be necessary, but I did this at various points and cannot be certain the above steps work without restarting the service.</li>
</ul>
<h2>Test Your RADIUS Authentication</h2>
<p>The ASDM utility includes functionality to test RADIUS Authentication.</p>
<ol>
<li>If necessary re-launch the ASDM utility.</li>
<li>Return to Configuration -&gt; Remote Access VPN -&gt; AAA Setup -&gt; AAA Server Groups.</li>
<li>Select the new Server Group you created.</li>
<li>From the <strong>Servers in the Selected Group</strong> section highlight the server you created. Click the <strong>Test</strong> button on the right.</li>
<li>Select the <strong>Authentication</strong> radio button. Enter the Username and Password of a user that meets the conditions specified in the Network Policy created above then click <strong>OK</strong>.</li>
<li>If everything works as designed you should see something similar to:<br />
<img src="http://fixingit.files.wordpress.com/2009/09/090809_2148_usingwindow2.png?w=480" alt="" /></li>
</ol>
<h2>Save your Cisco Configuration</h2>
<p>Don&#8217;t forget to save the running configuration to memory on your ASA. Otherwise you&#8217;ll lose all your settings the next time the device is rebooted.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fixingit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fixingit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fixingit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fixingit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fixingit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fixingit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fixingit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fixingit.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fixingit.wordpress.com&amp;blog=9388454&amp;post=5&amp;subd=fixingit&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fixingit.wordpress.com/2009/09/08/using-windows-server-2008-as-a-radius-server-for-a-cisco-asa/feed/</wfw:commentRss>
		<slash:comments>66</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e347c1c47aabcb213bf6b680f1ca93a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Marquis</media:title>
		</media:content>

		<media:content url="http://fixingit.files.wordpress.com/2009/09/090809_2148_usingwindow1.png" medium="image" />

		<media:content url="http://fixingit.files.wordpress.com/2009/09/090809_2148_usingwindow2.png" medium="image" />
	</item>
	</channel>
</rss>
