<?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>JasonSamuel.com &#187; Windows Server 2003</title>
	<atom:link href="http://www.jasonsamuel.com/category/windows-server-2003/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Sat, 17 Jul 2010 21:35:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>MSMQ messages stuck in the outgoing queue after cloning servers</title>
		<link>http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers</link>
		<comments>http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 18:52:48 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[MSMQ]]></category>
		<category><![CDATA[Windows Server 2000]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=471</guid>
		<description><![CDATA[Always remember to sysprep when cloning a node! MSMQ (Microsoft Message Queuing) uses a registry valued called QMId located at: HKLM\Software\Microsoft\MSMQ\Parameters\Machine Cache which has to be unique on all your servers or it will cause all sorts of issues. Sysprepping a server generates a new SID which also generates a new QMId in the process. [...]<p><a href="http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/">MSMQ messages stuck in the outgoing queue after cloning servers</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='Permanent Link: How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
<li><a href='http://www.jasonsamuel.com/2010/01/13/how-to-tell-which-com-application-belongs-to-what-dllhost-exe-in-iis/' rel='bookmark' title='Permanent Link: How to tell which COM+ Application belongs to what dllhost.exe in IIS'>How to tell which COM+ Application belongs to what dllhost.exe in IIS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Always remember to sysprep when cloning a node!  MSMQ (Microsoft Message Queuing) uses a registry valued called <strong>QMId</strong> located at:</p>
<p><strong>HKLM\Software\Microsoft\MSMQ\Parameters\Machine Cache</strong></p>
<p>which has to be unique on all your servers or it will cause all sorts of issues. Sysprepping a server generates a new SID which also generates a new QMId in the process.  If you don&#8217;t do this and have multiple servers out there with the same QMId, you will see strange things like messages remaining in the outgoing queue in limbo and sometimes just disappear completely with no trace in journaling anywhere.  Bottom line, don&#8217;t confuse MSMQ!  It&#8217;s fragile!</p>
<p>Thankfully John Breakwell (MSMQ guru at Microsoft) blogged about this exact issue which made me realize what was going on in the environment I was troubleshooting.  Well done John!</p>
<p><a href="http://blogs.msdn.com/b/johnbreakwell/archive/2007/02/06/msmq-prefers-to-be-unique.aspx">http://blogs.msdn.com/b/johnbreakwell/archive/2007/02/06/msmq-prefers-to-be-unique.aspx</a></p>
<p>I simply ran sysprep and resealed the clone to fix it.  It automatically generated a new QMId in the process so I didn&#8217;t have to follow the exact steps John had blogged about.  It was a simple mistake which can be avoided in the future by using the Guest Customization Wizard in VC to automatically sysprep when creating the clone.</p>
<p>BTW, you can check if your SIDs are identical on a server by using getsid.exe.  Download the Windows XP Service Pack 2 Support Tools:</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&#038;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=49AE8576-9BB9-4126-9761-BA8011FABF38&#038;displaylang=en</a></p>
<p>and use the getsid.exe tool to compare SIDs on your Windows servers.  Usage syntax is here:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc784314%28WS.10%29.aspx">http://technet.microsoft.com/en-us/library/cc784314%28WS.10%29.aspx</a></p>
<p>Since I&#8217;m blogging about MSMQ, let me take a moment to plug QueueExplorer (<a href="http://www.cogin.com/mq">http://www.cogin.com/mq</a>).  This is hands down the best MSMQ management software I have ever used and the developer is very open to feature requests.  Give them some business and tell them Jason sent ya! <img src='http://www.jasonsamuel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Check out a screenshot of it below:</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/06/queuexplorer.gif"><img src="http://www.jasonsamuel.com/wp-content/uploads/2010/06/queuexplorer-300x207.gif" alt="" title="queuexplorer" width="300" height="207" class="aligncenter size-medium wp-image-476" /></a></p>
<p><a href="http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/">MSMQ messages stuck in the outgoing queue after cloning servers</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='Permanent Link: How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
<li><a href='http://www.jasonsamuel.com/2010/01/13/how-to-tell-which-com-application-belongs-to-what-dllhost-exe-in-iis/' rel='bookmark' title='Permanent Link: How to tell which COM+ Application belongs to what dllhost.exe in IIS'>How to tell which COM+ Application belongs to what dllhost.exe in IIS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/06/30/msmq-messages-stuck-in-the-outgoing-queue-after-cloning-servers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to fix an IP address conflict on your network caused by a VM using PowerCLI</title>
		<link>http://www.jasonsamuel.com/2010/06/11/how-to-fix-an-ip-address-conflict-on-your-network-caused-by-a-vm-using-powercli/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-fix-an-ip-address-conflict-on-your-network-caused-by-a-vm-using-powercli</link>
		<comments>http://www.jasonsamuel.com/2010/06/11/how-to-fix-an-ip-address-conflict-on-your-network-caused-by-a-vm-using-powercli/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 22:07:58 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[VMware ESX]]></category>
		<category><![CDATA[VMware ESXi]]></category>
		<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[Windows Server 2000]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=434</guid>
		<description><![CDATA[IP Address conflict? Have you narrowed the MAC down to being a VM in one of your ESX/vSphere clusters? Well use vSphere PowerCLI to figure out what device and adapter is causing the conflict. Example, if your MAC is 005056b60b13: Get-vm &#124; Select Name, @{N=“Network“;E={$_ &#124; Get-networkAdapter &#124; ? {$_.macaddress -eq “00:50:56:b6:0b:13“}}} &#124;Where {$_.Network-ne “”} [...]<p><a href="http://www.jasonsamuel.com/2010/06/11/how-to-fix-an-ip-address-conflict-on-your-network-caused-by-a-vm-using-powercli/">How to fix an IP address conflict on your network caused by a VM using PowerCLI</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/11/06/vmware-vsphere-powercli-scripts-to-make-your-esx-admin-life-easier/' rel='bookmark' title='Permanent Link: VMware vSphere PowerCLI scripts to make your ESX Admin life easier'>VMware vSphere PowerCLI scripts to make your ESX Admin life easier</a></li>
<li><a href='http://www.jasonsamuel.com/2010/05/07/how-to-build-a-vmware-vsphere-vm-template-for-windows-server-2008-r2/' rel='bookmark' title='Permanent Link: How to Build a VMware vSphere VM Template for Windows Server 2008 R2'>How to Build a VMware vSphere VM Template for Windows Server 2008 R2</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>IP Address conflict?  Have you narrowed the MAC down to being a VM in one of your ESX/vSphere clusters?  Well use vSphere PowerCLI to figure out what device and adapter is causing the conflict.  </p>
<p>Example, if your MAC is 005056b60b13:</p>
<p>Get-vm | Select Name, @{N=“Network“;E={$_ | Get-networkAdapter | ? {$_.macaddress -eq “00:50:56:b6:0b:13“}}} |Where {$_.Network-ne “”}</p>
<p>And it will output the VM name and the Network Adapter causing the conflict.  <img src='http://www.jasonsamuel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.jasonsamuel.com/2010/06/11/how-to-fix-an-ip-address-conflict-on-your-network-caused-by-a-vm-using-powercli/">How to fix an IP address conflict on your network caused by a VM using PowerCLI</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/11/06/vmware-vsphere-powercli-scripts-to-make-your-esx-admin-life-easier/' rel='bookmark' title='Permanent Link: VMware vSphere PowerCLI scripts to make your ESX Admin life easier'>VMware vSphere PowerCLI scripts to make your ESX Admin life easier</a></li>
<li><a href='http://www.jasonsamuel.com/2010/05/07/how-to-build-a-vmware-vsphere-vm-template-for-windows-server-2008-r2/' rel='bookmark' title='Permanent Link: How to Build a VMware vSphere VM Template for Windows Server 2008 R2'>How to Build a VMware vSphere VM Template for Windows Server 2008 R2</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/06/11/how-to-fix-an-ip-address-conflict-on-your-network-caused-by-a-vm-using-powercli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Double checking your system after recovering from a corrupted OS</title>
		<link>http://www.jasonsamuel.com/2010/04/09/double-checking-your-system-after-recovering-from-a-corrupted-os/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=double-checking-your-system-after-recovering-from-a-corrupted-os</link>
		<comments>http://www.jasonsamuel.com/2010/04/09/double-checking-your-system-after-recovering-from-a-corrupted-os/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 21:36:52 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Windows Server 2000]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[repair corrupt OS]]></category>
		<category><![CDATA[sfc check]]></category>
		<category><![CDATA[windows server]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=374</guid>
		<description><![CDATA[Disasters happen and with a bit of skill and some luck, you might be able to get back into your operating system.  But you might notice a bunch of things out of place or missing if you had to do a Windows repair or use the Recovery Console to set things back to factory settings. [...]<p><a href="http://www.jasonsamuel.com/2010/04/09/double-checking-your-system-after-recovering-from-a-corrupted-os/">Double checking your system after recovering from a corrupted OS</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='Permanent Link: How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Disasters happen and with a bit of skill and some luck, you might be able to get back into your operating system.  But you might notice a bunch of things out of place or missing if you had to do a Windows repair or use the Recovery Console to set things back to factory settings.</p>
<p>One of the tools I like to use is System File Checker (sfc.exe) which compares your file system against the original install disk and replaces missing or corrupt system files as needed.  Just go to a command prompt and type:</p>
<blockquote><p><strong>sfc /scannow</strong></p></blockquote>
<p>and Windows File Protection will begin scanning all your protected system files immediately.  If you get a prompt asking you to insert a disk, just cancel out and edit your registry key here:</p>
<blockquote><p><strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup</strong></p></blockquote>
<p>and verify SourcePath is set to your CD-ROM drive with your install CD in it.  You&#8217;ll have to reboot to make sure the changes take effect.  Also you might want to verify:</p>
<blockquote><p><strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ServicePackSourcePath</strong></p></blockquote>
<p>is set to C:\WINDOWS\ServicePackFiles just so your service packs you have installed after installing the original OS are taken into account and not overwritten by older versions.</p>
<p><a href="http://www.jasonsamuel.com/2010/04/09/double-checking-your-system-after-recovering-from-a-corrupted-os/">Double checking your system after recovering from a corrupted OS</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='Permanent Link: How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/04/09/double-checking-your-system-after-recovering-from-a-corrupted-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quick way to troubleshoot SSL chain issues using OpenSSL</title>
		<link>http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl</link>
		<comments>http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 17:07:48 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[ssl certificates]]></category>
		<category><![CDATA[ssl chain]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=340</guid>
		<description><![CDATA[You can use OpenSSL and run this command: openssl.exe s_client -connect www.mysite.com:443 which will use a generic SSL/TLS client to connect to your site and give you a ton of diagnostic info.  You can see your entire SSL cert chain, the SSL handshake, SSL session info, etc.  Here&#8217;s a full list of switches you can [...]<p><a href="http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/">A quick way to troubleshoot SSL chain issues using OpenSSL</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/' rel='bookmark' title='Permanent Link: SSL certificate chains explained'>SSL certificate chains explained</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can use OpenSSL and run this command:</p>
<blockquote><p>openssl.exe s_client -connect www.mysite.com:443</p></blockquote>
<p>which will use a generic SSL/TLS client to connect to your site and give you a ton of diagnostic info.  You can see your entire SSL cert chain, the SSL handshake, SSL session info, etc.  Here&#8217;s a full list of switches you can use with it:  <a href="http://www.openssl.org/docs/apps/s_client.html">http://www.openssl.org/docs/apps/s_client.html</a></p>
<p>And here&#8217;s a great online tool to graphically verify your SSL chain is intact:  <a href="http://www.sslshopper.com/ssl-checker.html">http://www.sslshopper.com/ssl-checker.html</a></p>
<p><a href="http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/">A quick way to troubleshoot SSL chain issues using OpenSSL</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/' rel='bookmark' title='Permanent Link: SSL certificate chains explained'>SSL certificate chains explained</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/01/14/a-quick-way-to-troubleshoot-ssl-chain-issues-using-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a custom event log under Event Viewer to log server events</title>
		<link>http://www.jasonsamuel.com/2010/01/08/creating-a-custom-event-log-under-event-viewer-to-log-server-events/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=creating-a-custom-event-log-under-event-viewer-to-log-server-events</link>
		<comments>http://www.jasonsamuel.com/2010/01/08/creating-a-custom-event-log-under-event-viewer-to-log-server-events/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 17:41:43 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[event log]]></category>
		<category><![CDATA[event viewer]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=321</guid>
		<description><![CDATA[By default, most applications write events to the Application Event Log.  This is a great central place to write logs to but sometimes you might have a requirement to log informational events from an application and you don&#8217;t want it filling up your Application Event Log because of the sheer number of informational events you [...]<p><a href="http://www.jasonsamuel.com/2010/01/08/creating-a-custom-event-log-under-event-viewer-to-log-server-events/">Creating a custom event log under Event Viewer to log server events</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/' rel='bookmark' title='Permanent Link: Troubleshooting .NET 2.0 and WMI perfmon counters'>Troubleshooting .NET 2.0 and WMI perfmon counters</a></li>
<li><a href='http://www.jasonsamuel.com/2009/08/11/changing-the-host-header-for-an-already-existing-sharepoint-site-application/' rel='bookmark' title='Permanent Link: Changing the host header for an already existing Sharepoint site/application'>Changing the host header for an already existing Sharepoint site/application</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default, most applications write events to the Application Event Log.  This is a great central place to write logs to but sometimes you might have a requirement to log informational events from an application and you don&#8217;t want it filling up your Application Event Log because of the sheer number of informational events you might get a short period of time.  The solution is to create a custom event log for your application to hold these events.  You can then set max log size, overwrite rules, filters, etc. on this event log while your Application Event Log remains clean and intact.</p>
<p>The first step is to create the new log.  You have to do this in the registry.  Open up regedit and navigate to:</p>
<blockquote><p><strong>HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog</strong></p></blockquote>
<p>Right click on the Eventlog key and click New &gt; Key</p>
<p>Name this new key the same name you want your new event log to be named.  By default it will create the new .evt file here:</p>
<blockquote><p><strong>C:\WINDOWS\System32\Config\New Key #1.evt</strong></p></blockquote>
<p>You can always rename it by editing the string value data in the registry if you like.</p>
<p>Now you need to add Sources to your new event log.  Right click in the right window pane under your new key and add a new Multi-String value called &#8220;Sources&#8221; and add the name of each of your applications on each line.  It should look something like this:</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/11.gif"><img class="alignnone size-medium wp-image-325" title="1" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/11-300x66.gif" alt="" width="300" height="66" /></a></p>
<p>Now you need to move the association of your application from the Application event log to your new Custom log.  Just expand the &#8220;Application&#8221; key located at:</p>
<blockquote><p><strong>HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application</strong></p></blockquote>
<p>and copy whatever key you see in there for your app under your new Custom log:</p>
<blockquote><p><strong>HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\CustomLog</strong></p></blockquote>
<p>There&#8217;s no copy/paste command so you can recreate the key if it&#8217;s small or you can export/import if it&#8217;s something complicated and you are afraid of mistyping something.  MAKE SURE to delete it from Application after you add it to the Custom log or it will not write events to your new log since Windows thinks its still associated with the Application log.  If it is a custom source, you need to create a DWORD value under this key with the value of 1:</p>
<p><a href="http://www.jasonsamuel.com/wp-content/uploads/2010/01/21.gif"><img class="alignnone size-medium wp-image-326" title="2" src="http://www.jasonsamuel.com/wp-content/uploads/2010/01/21-300x53.gif" alt="" width="300" height="53" /></a></p>
<p>You will also notice my custom app in this example is a .NET 2.0 appliaction so I want .NET to write the events to the log.  I have to create a string value called EventMessageFile and give it the path to the .NET 2.0 event log message dll:</p>
<blockquote><p><strong>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll</strong></p></blockquote>
<p>Now you should reboot your server.  When it&#8217;s back up, check and see if your new event log appears under Event Viewer.  If your application is not writing events to your new log, test it manually by opening a command prompt and going to:</p>
<blockquote><p><strong>C:\WINDOWS\system32</strong></p></blockquote>
<p>and typing:</p>
<blockquote><p><strong>eventcreate /l CustomLog /t Information /so Application1 /id 1 /d &#8220;Test message&#8221;</strong></p></blockquote>
<p>You should get a message saying it was successfully written or you should get an error message with details on why it was not written.  If you followed the steps in this blog post, it should write the event just fine.</p>
<p><a href="http://www.jasonsamuel.com/2010/01/08/creating-a-custom-event-log-under-event-viewer-to-log-server-events/">Creating a custom event log under Event Viewer to log server events</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/' rel='bookmark' title='Permanent Link: Troubleshooting .NET 2.0 and WMI perfmon counters'>Troubleshooting .NET 2.0 and WMI perfmon counters</a></li>
<li><a href='http://www.jasonsamuel.com/2009/08/11/changing-the-host-header-for-an-already-existing-sharepoint-site-application/' rel='bookmark' title='Permanent Link: Changing the host header for an already existing Sharepoint site/application'>Changing the host header for an already existing Sharepoint site/application</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/01/08/creating-a-custom-event-log-under-event-viewer-to-log-server-events/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to clear a hung profile in Urchin 6</title>
		<link>http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-clear-a-hung-profile-in-urchin-6</link>
		<comments>http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 17:03:14 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Urchin 6]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=280</guid>
		<description><![CDATA[If you&#8217;ve ever used Urchin 6 for web analytics (Google&#8217;s pay for version of Google Analytics aimed at enterprises), you have probably seen profiles stuck in a &#8220;Running&#8221; state.  If you hit Run Now, you get this error message: 12008 &#8211; Action: Failed to cancel urchin process. If you try to reschedule the profile, you [...]<p><a href="http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/">How to clear a hung profile in Urchin 6</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever used <a href="http://www.google.com/urchin/" target="_blank">Urchin 6</a> for web analytics (Google&#8217;s pay for version of Google Analytics aimed at enterprises), you have probably seen profiles stuck in a &#8220;Running&#8221; state.  If you hit Run Now, you get this error message:</p>
<blockquote><p>12008 &#8211; Action: Failed to cancel urchin process.</p></blockquote>
<p>If you try to reschedule the profile, you get this error message:</p>
<blockquote><p>12007 &#8211; Action: Failed to add profile to the scheduler queue. The profile is already in the queue.</p></blockquote>
<p>This happens because Urchin&#8217;s scheduler is very sensitive to server reboots.  If you have jobs scheduled to run at night and let&#8217;s say you push patches to the server and reboot in the middle of the night, it can cause this error to appear on some of your profiles.  You get these errors because the log processing engine and scheduler never received the proper exit signals which means there will be database entries in the MySQL database that will be in an inconsistent state.  When the server boots back up, the log processing engine cannot pick back up where it stopped and the web GUI will show the profile is &#8220;Running&#8221; even though it is not.</p>
<p>The quick solution for this is to navigate to your Urchin bin folder via command prompt.  Here is an example path:</p>
<p>C:\Program Files\Urchin6\bin</p>
<p>then type:</p>
<blockquote><p>urchinctl stop</p></blockquote>
<p>which will stop all Urchin processes.  Then open up MySQL Command Line Client and type:</p>
<blockquote><p>use urchin;<br />
delete from uprofiles_queue;</p></blockquote>
<p><img class="alignnone size-full wp-image-287" title="urchin6_mysql" src="http://www.jasonsamuel.com/wp-content/uploads/2009/12/urchin6_mysql.gif" alt="urchin6_mysql" width="666" height="329" /></p>
<p>This switches the database to the urchin database and deletes all running profiles.  Now if you go to to the web GUI under Profile Task Scheduler, you will see everything looks normal.  Now trying running the job again and it should work.  You should get a message saying:</p>
<blockquote><p>12009 &#8211; Action: Profile has been queued to run. Please check the Profile Task History screen for status and runtime output.</p></blockquote>
<p>Now don&#8217;t forget to restart your Master and Slave scheduler services or the job will remain in a queued state until they are back up:</p>
<blockquote><p>urchinctl start</p></blockquote>
<p>Now verify the job is actually running properly by clicking the green &#8220;Running&#8221; link for the job and you should see it processing the logs.</p>
<p><a href="http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/">How to clear a hung profile in Urchin 6</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/12/01/how-to-clear-a-hung-profile-in-urchin-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting .NET 2.0 and WMI perfmon counters</title>
		<link>http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=troubleshooting-net-2-0-and-wmi-perfmon-counters</link>
		<comments>http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 20:42:27 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[.NET 2.0]]></category>
		<category><![CDATA[.NET 3.5]]></category>
		<category><![CDATA[perfmon]]></category>
		<category><![CDATA[wbemtest]]></category>
		<category><![CDATA[wmi]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=169</guid>
		<description><![CDATA[.NET 2.0 counters won&#8217;t show up in perfmon by default when using the /wmi switch.  They will show up in you just use regular perfmon but if you are trying to monitor .NET 2.0 counters via WMI, you are stuck.  Microsoft is aware of this and released 951683 to fix this issue.  You can request [...]<p><a href="http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/">Troubleshooting .NET 2.0 and WMI perfmon counters</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>



More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='Permanent Link: How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>.NET 2.0 counters won&#8217;t show up in perfmon by default when using the /wmi switch.  They will show up in you just use regular perfmon but if you are trying to monitor .NET 2.0 counters via WMI, you are stuck.  Microsoft is aware of this and released 951683 to fix this issue.  You can request the hotfix from CSS here:</p>
<p><a href="http://support.microsoft.com/kb/951683">http://support.microsoft.com/kb/951683</a></p>
<p>This hotfix is included with .NET 3.5 SP1 onward so if you have it installed, you shouldn&#8217;t experience this issue.  After installing the hotfix (does not require a reboot), just restart the WMI service and run this from command line:</p>
<blockquote><p>winmgmt /resyncperf</p></blockquote>
<p>which will resync counters with WMI.  Then open perfmon using &#8220;perfmon /wmi&#8221;  and you will see the missing counters. </p>
<p>You can also use the wbemtest.exe utility to test and troubleshoot WMI related issues.  Just run this from command line:</p>
<blockquote><p>wbemtest.exe</p></blockquote>
<p>Click the Connect button and change the very first field to &#8220;root\cimv2&#8243;.  Then press Connect and then click Enum Classes on the next window.  Leave the superclass blank but change it to Recursive and press OK.  It will query every WMI class on the server and you can click on them to get further details.  This should help you tremendously if you write your own WQL queries! <img src='http://www.jasonsamuel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/">Troubleshooting .NET 2.0 and WMI perfmon counters</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>


<p>More of my posts you might like:<ol><li><a href='http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/' rel='bookmark' title='Permanent Link: How to install and configure SNMP via command line on your servers'>How to install and configure SNMP via command line on your servers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/08/07/troubleshooting-net-2-0-and-wmi-perfmon-counters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install and configure SNMP via command line on your servers</title>
		<link>http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-install-and-configure-snmp-via-command-line-on-your-servers</link>
		<comments>http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 22:06:28 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[SNMP]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=15</guid>
		<description><![CDATA[You can install pretty much any windows component locally or remotely on a server.  Here is an example of installing SNMP using an answer file via command line locally on a server: sysocmgr /i:%windir%\inf\sysoc.inf /u:&#8221;\\server\share\snmp.txt&#8221; /q This will install SNMP quietly using the answer file I give it which is located on a file share.  [...]<p><a href="http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/">How to install and configure SNMP via command line on your servers</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></description>
			<content:encoded><![CDATA[<p>You can install pretty much any windows component locally or remotely on a server.  Here is an example of installing SNMP using an answer file via command line locally on a server:</p>
<p>sysocmgr /i:%windir%\inf\sysoc.inf /u:&#8221;<a href="file://server/share/snmp.txt">\\server\share\snmp.txt</a>&#8221; /q</p>
<p>This will install SNMP quietly using the answer file I give it which is located on a file share.  Here are the contents of the answer file:</p>
<p>[NetOptionalComponents]<br />
SNMP = 1</p>
<p>[SNMP]</p>
<p>Send_Authentication = Yes<br />
Accept_CommunityName = mine_ro:Read_Only<br />
Any_Host = No<br />
Limit_Host = xxx.xxx.xxx.xxx</p>
<p>This will automatically configure a new read only community you specify and add a single host that is allowed to connect (you can add more IPs but adding a comma after each one).  The only dilemma is that during the install, it needs to get at the i386 directory and by default in the registry, it is pointed to “D:/i386” more than likely since that is typically the CD-ROM drive you installed the OS from.  We just need to run a quick registry update to two keys that point it to the C: drive before running the line above and it should work with no issue.  This can be done in bulk on servers too using whatever remote management tool you prefer:</p>
<p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\ CurrentVersion\Sourcepath</p>
<p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \CurrentVersion\Setup\Sourcepath</p>
<p>Keep in mind sysocmgr.exe has been replaced in Server 2008 by ocsetup.exe.  You can read up on command line switches for it here:</p>
<p><a href="http://technet.microsoft.com/en-us/magazine/dd673656.aspx">http://technet.microsoft.com/en-us/magazine/dd673656.aspx</a><br />
<a href="http://technet.microsoft.com/en-us/library/cc766272(WS.10).aspx">http://technet.microsoft.com/en-us/library/cc766272(WS.10).aspx</a></p>
<p><a href="http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/">How to install and configure SNMP via command line on your servers</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/07/22/how-to-install-and-configure-snmp-via-command-line-on-your-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSL certificate chains explained</title>
		<link>http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ssl-certificate-chains-explained</link>
		<comments>http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 21:42:07 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[CA]]></category>
		<category><![CDATA[certificate authority]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[registrar]]></category>
		<category><![CDATA[root certificates]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ssl chains]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=54</guid>
		<description><![CDATA[Today I would like to clear up some confusion about SSL Chained Certificates. For this example, I will use Network Solutions as the Certificate Authority (CA) you are buying the cert from. This is information you will have to know when you purchase a new SSL cert or renew an existing SSL cert for your [...]<p><a href="http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/">SSL certificate chains explained</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Today I would like to clear up some confusion about SSL Chained Certificates. For this example, I will use Network Solutions as the Certificate Authority (CA) you are buying the cert from. This is information you will have to know when you purchase a new SSL cert or renew an existing SSL cert for your Exchange server, IIS web server, or any other external facing server or appliance.</p>
<p>Network Solutions does not issue you a single cert. They issue you an SSL chained cert. So for example, if you are buying a cert for:</p>
<p><strong>widgets.com</strong></p>
<p>They will validate and issue you the cert, but when you download and open the zip file from their website, you will see the following certificate bundle:</p>
<p><strong>AddTrustExternalCARoot.crt<br />
NetworkSolutions_CA.crt<br />
WIDGETS.COM.crt<br />
UTNAddTrustServer_CA.crt</strong></p>
<p>Let&#8217;s analyze these certs in your chain. The first one is AddTrustExternalCARoot.crt which is called the &#8220;root certificate&#8221;. This is the first cert in your chain. This root cert is installed to the Trusted Root Certification Authorities store on your server or network appliance.</p>
<p>The second cert in your chain is NetworkSolutions_CA.crt and the UTNAddTrustServer_CA.crt which are &#8220;intermediate certificates&#8221;. An intermediate cert is essentially a certificate issued by the Trusted Root CA specifically designed to issue SSL Certificates to you. The reason for this is because if the CA root cert were to ever be compromised, the entire chain fails. It is good security practice to use an &#8220;intermediary&#8221; to issue the certs from to prevent your root CAs from being exposed from the signing process. If an intermediate were to ever be compromised, you can always regenerate those unlike the root certs. This intermediate certificate sits between your website cert and the root cert. This intermediate cert is installed to the Intermediate Certification Authorities store on your server or appliance.</p>
<p>The last cert in your chain is WIDGETS.COM.crt which is your actual SSL cert. This is also known as your &#8220;domain certificate&#8221;. This domain cert is installed to the Personal store on your server or appliance.</p>
<p>So the end result is chain of certs that begins at the trusted root CA, runs through the intermediary, and finally ends with the SSL certificate issued to you for your website or appliance (widgets.com).</p>
<p>In most cases, any sever or appliance out there will already have the trusted root cert for Network Solutions installed. You can just install your SSL cert and not have to worry about anything else in most cases. Depending on where you buy your cert from and what you are trying to install your cert to, you may have to go through the steps of installing the Trusted Root cert and Intermediate cert first before installing your SSL cert. With some web browsers like Internet Explorer 7 for example, you can get away with not having to install any Intermediate Certificate because IE7 will automatically go out automatically download the intermediate cert the first time a user visits your website. This makes things easy for the lazy admin but it&#8217;s always best practice to go a head and add the Intermediate cert on your end instead of depending on the client and their browser&#8217;s ability to do this. There is no point in risking a certificate error for the end user when the fix is so easy.</p>
<p>To verify the chain, go to any site you know that uses SSL (https://) and then click on the lock in Internet Explorer, it will let you view the SSL cert info. Click the &#8220;Certificate Path&#8221; tab and you can see the chain we described above:</p>
<p>Trusted Root &#8212;&gt; Intermediate &#8212;&gt; SSL Certificate</p>
<p><img class="alignnone size-full wp-image-85" title="sslcertpath" src="http://www.jasonsamuel.com/wp-content/uploads/2009/11/sslcertpath.png" alt="sslcertpath" width="409" height="483" /><br />
You can then click on each one of these certs and hit the &#8220;View Cert&#8221; button to view each cert in the chain individually. Good luck and post a comment if you have any questions. <img src='http://www.jasonsamuel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/">SSL certificate chains explained</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2009/03/12/ssl-certificate-chains-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: www.jasonsamuel.com @ 2010-07-31 20:00:29 -->