<?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>sperrgebiet&#039;s world &#187; Windows Server 2008 R2</title>
	<atom:link href="http://www.sperrgebiet.org/tag/server2008/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sperrgebiet.org</link>
	<description>penguins (and ducks) are friends, no food</description>
	<lastBuildDate>Wed, 07 Dec 2011 12:59:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Upgrading Windows Edition</title>
		<link>http://www.sperrgebiet.org/2010/11/upgrading-windows-edition/</link>
		<comments>http://www.sperrgebiet.org/2010/11/upgrading-windows-edition/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 23:09:55 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=397</guid>
		<description><![CDATA[Upgrade Windows Server 2008 R2 Editions]]></description>
			<content:encoded><![CDATA[<p>I just needed to upgrade a Windows Server 2008 R2 Standard Box to Enterprise. So after searching around I found DISM.exe, the Deployment Image Servicing and management tool, which gives you the possibility to change the Edition of a Server 2008R2 (or Win 7) without reinstalling it and also without the need for a media.
</p>
<p>It&#8217;s really a quick and easy task:
</p>
<p>Open a command line and type
</p>
<p><strong>Dism /Online /GetTargetEditions<br />
</strong></p>
<p>You will get the current installed Windows Edition, in my case ServerStandard
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/11/103110_2309_UpgradingWi1.png" alt=""/>
	</p>
<p>You get a list with available upgrade options with:
</p>
<p><strong>dism /online /get-targeteditions<br />
</strong></p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/11/103110_2309_UpgradingWi2.png" alt=""/>
	</p>
<p>So, to upgrade to Enterprise you have just to type:
</p>
<p><strong>dism /online /set-edition:serverenterprise /productkey:&lt;your productkey&gt;<br />
</strong></p>
<p>The key I used for the command is a KMS-Key. If you just own MAK&#8217;s you have to specify one of your Multiple Activation Key&#8217;s of course. I&#8217;ve added a link to all KMS-Keys at the end of this post.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/11/103110_2309_UpgradingWi3.png" alt=""/>
	</p>
<p>After the reboot we can check if the upgrade worked.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/11/103110_2309_UpgradingWi4.png" alt=""/>
	</p>
</p>
<p><span style="text-decoration:underline"><em>Here are some useful links:<br />
</em></span></p>
<p><strong>Technet Library for DISM</strong><br/><a href="http://technet.microsoft.com/en-us/library/dd744380(WS.10).aspx">http://technet.microsoft.com/en-us/library/dd744380(WS.10).aspx</a>
	</p>
<p><strong>KMS Keys</strong><br/><a href="http://technet.microsoft.com/en-us/library/ff793406.aspx">http://technet.microsoft.com/en-us/library/ff793406.aspx</a>
	</p>
<p><strong>And a more detailed blog post</strong><br/><a href="http://blogs.technet.com/b/server_core/archive/2009/10/14/upgrading-windows-server-2008-r2-without-media.aspx">http://blogs.technet.com/b/server_core/archive/2009/10/14/upgrading-windows-server-2008-r2-without-media.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/11/upgrading-windows-edition/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PowerShell – Credentials for Cmdlets – Get-Credential</title>
		<link>http://www.sperrgebiet.org/2010/08/powershell-credentials-for-cmdlets-get-credential/</link>
		<comments>http://www.sperrgebiet.org/2010/08/powershell-credentials-for-cmdlets-get-credential/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 22:02:07 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=319</guid>
		<description><![CDATA[Using Get-Credential in PowerShell for easier credential handling.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sorry that i was so quite the last few weeks. There was a lot to do. Furthermore I tried to enjoy the sun as often as possible <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  But I&#8217;ll still try it hard to post more frequently.
</p>
<p>Just a short PowerShell –Trick which will save you a lot of time <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>A lot of Cmdlets need the right credentials to perform a action. Especially with W2008R2 and the AD-Cmdlets or with Exchange 2010 this is handy. So you can either type your username/password every time, or just save it to a variable.
</p>
<p><strong>$cred = Get-Credential<br />
</strong></p>
<p>After hitting Enter a Pop-Up appears where you can enter your credentials. They will be saved within the variable
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/08/080310_2201_PowerShellC1.png" alt=""/>
	</p>
</p>
<p>The input isn&#8217;t validated. It&#8217;s just saved within the variable for later processing. And don&#8217;t worry, the password isn&#8217;t saved as clear text <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/08/080310_2201_PowerShellC2.png" alt=""/>
	</p>
<p>You can also fill the prompt with a username by using &#8220;<strong>Get-Credential &lt;Username&gt;&#8221;.</strong> This is maybe helpful when using that in a script.
</p>
<p>You can also use this Pop-Up Mechanism directly in a command.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/08/080310_2201_PowerShellC3.png" alt=""/>
	</p>
</p>
<p>So have fun playing around with PowerShell <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
</p>
<p>May the Shell be with you <span style="font-family:Wingdings">J</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/08/powershell-credentials-for-cmdlets-get-credential/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monitor Windows Performance Counters with Icinga or Nagios</title>
		<link>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/</link>
		<comments>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 22:08:14 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Icinga]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Performance Counter]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=304</guid>
		<description><![CDATA[Icinga or Nagios can be easily used to monitor Windows Performance Counters. This is quite useful, because the most &#8220;monitor-relevant&#8221; information from Windows Systems is available through Performance Counters. So, let&#8217;s start. First we&#8217;ll do the Windows-Part. Grab a copy of NSClient++ (Thanks a lot to Michael Medin for his great work on this AddOn)&#8230;]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Times New Roman; font-size:12pt">Icinga or Nagios can be easily used to monitor Windows Performance Counters. This is quite useful, because the most &#8220;monitor-relevant&#8221; information from Windows Systems is available through Performance Counters.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">So, let&#8217;s start.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>First we&#8217;ll do the Windows-Part. </strong><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">Grab a copy <strong>of NSClient++</strong> (Thanks a lot to Michael Medin for his great work on this AddOn) at <a href="http://nsclient.org/nscp/">http://nsclient.org/nscp/</a><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">I prefer the ZIP-Package and a manually installation. But it doesn&#8217;t matter if you want to install the MSI. Just take care that you use the 32 or 64 Bit Version.<br />
</span></p>
<ol>
<li>If you have the ZIP-Package as well, just unpack it and move the files to a folder you like (I use C:\Tools\NSClient++).
</li>
<li>
<div>Open <strong>nsc.ini </strong>and make the following changes:
</div>
<ol>
<li>Line 14: Uncomment NRPEListener.dll
</li>
<li>Line 117: allow_arguments=1
</li>
<li>Line 121: allow_nasty_meta_chars=1
</li>
<li>Line 125: use_ssl=1
</li>
<li>Line 135: allowed_hosts=&lt;IP of your Icinga/Nagios Host&gt;
</li>
</ol>
<p style="margin-left: 18pt"><span style="font-family:Times New Roman; font-size:12pt">Explanation: You need <strong>allow_arguments</strong> and the <strong>nasty_meta_chars</strong> for Performance Counters, because we need the Backslash to specify them.<br/><strong>use_ssl</strong> and <strong>allowed_hosts</strong> is just for security reasons, but I suggest to use them<br />
</span></p>
</li>
<li>Start a command prompt and navigate to the directory where you&#8217;ve unpacked your NSClient++ Files (make sure you&#8217;re running the command prompt as Administrator)
</li>
<li>
<div>Test if NSClient++ is working     =&gt;    <strong>&#8220;NSClient++.exe&#8221; /test</strong><br/><br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind11.png" alt=""/>
			</div>
<p><span style="font-family:Times New Roman; font-size:12pt">If the output looks good (if no error is displayed) exit the Test-Mode with, tada =&gt; Exit <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">This Test-Mode is really handy if a query on the Monitoring-Host doesn&#8217;t return the result you expect. Just fire up the Test-Mode and run the query again.<br />
</span></p>
</p>
</li>
<li>
<div>Now it&#8217;s almost done. Just install the service and start it.
</div>
<ol>
<li><strong>&#8220;NSClient++.exe&#8221; –install </strong>
				</li>
<li><strong>net start nsclientpp</strong><br/><br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind21.png" alt=""/>
				</li>
</ol>
</li>
<li>That&#8217;s it, the Windows-Part is done <span style="font-family:Wingdings">?</span>
		</li>
</ol>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>So, now it&#8217;s time for the Linux-Tasks. </strong><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">We need the check_nrpe Plugin. You can either install it with aptitude (aptitude install nagios-nrpe-plugin) or grap a copy of the NRPE source at: <a href="http://www.nagios.org/download/addons">http://www.nagios.org/download/addons</a><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">Again, I&#8217;m a fan of compiling such stuff myself. So let&#8217;s do it.<br />
</span></p>
<ol>
<li>Unpack the archive    =&gt;    tar –xzf nrpe-2.12.tar.gz
</li>
<li>Run the configure-command. Just make sure to include the &#8220;<strong>—enable-command-args</strong>&#8221; option    =&gt; ./configure &#8211;enable-command-args &#8211;enable-ssl<br/>Again, &#8211;enable-ssl isn&#8217;t necessary, but a recommendation. Futhermore maybe it&#8217;s necessary to add some other config-switches to fit your environment.
</li>
<li>Compile the package    =&gt;    make
</li>
<li>It&#8217;s not necessary to install the package, we just the the check_nrpe binary from the ./<strong>src </strong>directory.
</li>
<li>Copy the check_nrpe binary to your libexec dir of Nagios or Icinga    =&gt; <strong>cp src/check_nrpe /usr/local/icinga/libexec/</strong>
		</li>
</ol>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Last but not least, the Nagios/Icinga Config </strong><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">First, we&#8217;ll create a new command for checking Performance Counters<br />
</span></p>
<ol>
<li>Edit your <strong>commands.cfg</strong> (by default in /usr/local/icinga/etc/objects/commands.cfg)    =&gt;    <strong>sudo vim /usr/local/icinga/etc/objects/commands.cfg</strong><br/><br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind31.png" alt=""/><br/><br/>Again, this is just a recommendation. But I prefer a &#8220;generic&#8221; command and put the detailed definition into services.
</li>
<li>Now add a new service (by default in /usr/local/icinga/etc/objects/services.cfg)    =&gt; <strong>sudo vim /usr/local/icinga/etc/objects/services.cfg</strong><br/>You must use <strong>double Backslashes</strong> for the Counters<br/><br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind41.png" alt=""/>
		</li>
<li>
<div>How to get the name of a Performance Counter?
</div>
<p><span style="font-family:Times New Roman; font-size:12pt">Use the Windows Performance Monitor (Start -&gt; Run -&gt; perfmon) and add the counters you want to monitor. After that switch to the properties of your current Performance Monitor Session (<strong>Action -&gt; Properties</strong> or<strong> Right Click to the Graphs -&gt; Properties</strong>). At the <strong>Data-Tab</strong> you&#8217;ll find the right name. Just make sure to use double Backslashes in your Icinga/Nagios Config.<br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind51.png" alt=""/><br />
				</span></p>
</li>
<li>
<div>Save both files ( :wq <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) , check the config and reload Icinga
</div>
<ol>
<li><strong>sudo /etc/init.d/icinga checkconfig </strong>
				</li>
<li><strong>sudo /etc/init.d/icinga reload </strong>
				</li>
</ol>
</li>
<li>Look at the results of the check in the Web Interface (I&#8217;m sure you&#8217;re already running Icinga-Web, or not? <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind6.png" alt=""/>
		</li>
</ol>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Some troubleshooting tips: </strong><br />
		</span></p>
<ol>
<li>Before adding a service, run the check on the Linux command line. <br/><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind7.png" alt=""/>
		</li>
<li>
<div>Of you do not get the result you expect with the &#8220;remote run&#8221; (see above) try to run the check locally on the Windows Machine.
</div>
<ol>
<li>Start NSClient++ in Test-Mode; You can do that while the service is running. You&#8217;ll get an error that no socket can be bind, but it&#8217;s ok    =&gt; <strong>&#8220;NSClient++.exe&#8221; /test</strong>
				</li>
<li>
<div>Run the check without double Backslashes (they are just necessary for the remote execution)
</div>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/060510_2207_MonitorWind8.png" alt=""/><span style="font-family:Times New Roman; font-size:12pt"><br />
						</span></p>
</p>
</li>
</ol>
</li>
</ol>
<p><span style="font-family:Times New Roman; font-size:12pt">Hope this post is helpful for you. If you miss something, or if some steps are not clearly enough just let me know.<br />
</span></p>
<p><span style="font-size:12pt"><strong><span style="font-family:Times New Roman">Good luck and happy monitoring </span><span style="font-family:Wingdings">?</span></strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/06/monitor-windows-performance-counters-with-icinga-or-nagios/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

