<?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; Microsoft</title>
	<atom:link href="http://www.sperrgebiet.org/category/microsoft/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>Exchange 2010 ActiveSync &#8211; HTTP 500 Internal Server Error – DeviceNotProvisioned_Mbx</title>
		<link>http://www.sperrgebiet.org/2010/12/exchange-2010-activesync-http-500-internal-server-error-devicenotprovisioned_mbx/</link>
		<comments>http://www.sperrgebiet.org/2010/12/exchange-2010-activesync-http-500-internal-server-error-devicenotprovisioned_mbx/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 20:50:24 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Active Sync]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=410</guid>
		<description><![CDATA[Exchange 2010 ActiveSync - HTTP 500 Internal Server Error – DeviceNotProvisioned_Mbx]]></description>
			<content:encoded><![CDATA[<p>Since Beta 2 I have MXS2010 running on a private machine to get in touch with it. Since a couple of weeks I have MXS2010 SP1 running in my company so we can test everything in a larger environment. It&#8217;s running parallel to our MXS2003 environment and just a few Mailboxes where moved to MXS2010. Recently we had the problem that some Mobile Devices weren&#8217;t able to sync via ActiveSync. At the beginning it seemed that just Nokia Mobiles with MFE (Mail for Exchange) were affected. But today I figured out that this also happened with an Android Phone.
</p>
<p>On the mobiles we just got an HTTP 500 (Internal Server Error). Also in the IIS-Log file I didn&#8217;t get that much information. Also just HTTP 500. But within the request I found the following information &#8220;<strong>DeviceNotProvisioned_Mbx</strong>:&lt;MBX-Servername&gt;.
</p>
<p>So, provisioned where? OK, through the ECP I checked if the authenticated user account has a mobile device associated to it. But there was no association. So after a moment of thinking I remembered that I saw &#8220;something&#8221; time ago within Active Directory. Because I always use &#8220;<em>Advanced Features</em>&#8221; and especially &#8220;<em>Users, Contacts, Groups, and Computers as containers</em>&#8221; within dsa.msc I just switched to that MMC and changed to a user account where I knew that ActiveSync is working.
</p>
<p>So first, if not already done, activate the above mentioned features (you&#8217;ll need both).
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/12/122010_2049_Exchange2011.png" alt=""/>
	</p>
</p>
<p>So, beyond an ActiveSync enabled user account (which already synced with a device) you&#8217;ll find a new container called &#8220;<strong>ExchangeActiveSyncDevices</strong>&#8220;. Within that container you&#8217;ll find entries for every device this user is currently syncing or synced once in the life time (unless the device was removed within ECP or so).
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/12/122010_2049_Exchange2012.png" alt=""/>
	</p>
</p>
<p>So, nice, but how does that help with the above error? Actually the error occurs because Exchange isn&#8217;t able to create this container. This can happen if someone played around with the Active Directory permissions (like it happened in my company BEFORE I started there, of course) <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>So within the Properties of a user account at the Security Tab (if you can&#8217;t see that one you have so enable the &#8220;<em>Advanced Features</em>&#8221; within View) -&gt; Advanced the Check Box &#8220;<em>Include inheritable permission from this object&#8217;s parent</em>&#8221; should be checked.
</p>
</p>
<p>Exchange 2010 grants special permissions to the group &#8220;<strong>Exchange Servers</strong>&#8221; at the Domain Level. Actually it grants &#8220;<strong>Create/Delete msExchActiveSyncDevices objects</strong>&#8220;.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/12/122010_2049_Exchange2013.png" alt=""/>
	</p>
</p>
<p>So if Exchange isn&#8217;t able to create this container beyond a user object it can&#8217;t create the device object and so now association between the mobile device and the user and finally as consequence of that no Active Sync is working <span style="font-family:Wingdings">J</span>
	</p>
<p><span style="font-size:14pt"><strong>Conclusion: Don&#8217;t mess with Active Directory Permissions unless you really know what you do (for now and for the future) <span style="font-family:Wingdings">J</span><br />
			</strong></span></p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/12/exchange-2010-activesync-http-500-internal-server-error-devicenotprovisioned_mbx/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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>Exchange Management Console – Initialization failed after renaming/removing a server</title>
		<link>http://www.sperrgebiet.org/2010/11/exchange-management-console-initialization-failed-after-renaming-or-removin-a-server/</link>
		<comments>http://www.sperrgebiet.org/2010/11/exchange-management-console-initialization-failed-after-renaming-or-removin-a-server/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 22:49:49 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=391</guid>
		<description><![CDATA[Exchange Management Console - Initialization failed]]></description>
			<content:encoded><![CDATA[</p>
<p>After renaming a server and reinstalling Exchange 2010 i got the following error while launching EMC: The following error occurred while attempting to connect to the specified Exchange server ‚&lt;OLD SERVERNAME&#8217;.
</p>
<p>The problem was that EMC still tries to connect to the old server name, and I found no option to specify the new one.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/11/103110_2249_ExchangeMan1.png" alt=""/>
	</p>
</p>
<p>So I looked around in the Registry and TaTa, there is one value which still includes the old value. Just too bad that it&#8217;s a Binary value. So if you want you can also just rename the server to the new and right value. The easier solution (which I did) is just deleting the value &#8220;<strong>NodeStructureSettings</strong>&#8220;.
</p>
<p>BTW: It&#8217;s within the following Hive: HKCU\Software\Microsoft\Exchangeserver\v14\AdminTools
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/11/103110_2249_ExchangeMan2.png" alt=""/>
	</p>
</p>
<p>After firing up EMC again it will discover the local Exchange Installation again and running fine again <span style="font-family:Wingdings">J</span>
	</p>
<p>BTW: With EMS (<span style="font-family:Wingdings">à</span>PowerShell) you won&#8217;t get this error <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/11/103110_2249_ExchangeMan3.png" alt=""/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/11/exchange-management-console-initialization-failed-after-renaming-or-removin-a-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setup cannot use domain controller ‚</title>
		<link>http://www.sperrgebiet.org/2010/10/setup-cannot-use-domain-controller/</link>
		<comments>http://www.sperrgebiet.org/2010/10/setup-cannot-use-domain-controller/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 21:15:38 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=386</guid>
		<description><![CDATA[Setup cannot use domain controller 'dcname.fqdn' because an override is set in the registry. Run Setup again, and specify '/DomainController:<other dc fqdn>']]></description>
			<content:encoded><![CDATA[<p>Hy
</p>
<p>I&#8217;ve the got the following error after reinstalling an Exchange 2010 Server.
</p>
<p>Setup cannot use domain controller &#8216;&lt;dcname.fqdn&gt;&#8217; because an override is set in the registry. Run Setup again, and specify &#8216;/DomainController:&lt;other dc fqdn&#8217;.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/10/103110_2115_Setupcannot1.png" alt=""/>
	</p>
</p>
<p>The problem was that i statically assigned a domain controller to this Exchange Server after the old installation.
</p>
<p>So I tried to hint the setup brought up and ran setup.com with the /domaincontroller Parameter. But I got the same error.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/10/103110_2115_Setupcannot2.png" alt=""/>
	</p>
</p>
<p>After a short search in the registry, i saw that there was still some stuff from the old installation. Especially the configuration from the &#8220;MSExchangeADTopology&#8221; Service, which provides the AD informations to Exchange services, was still there and caused this problem.
</p>
<p>So after deleting &#8220;<strong>ConfigDCHostName</strong>&#8221; and running setup again, everything worked fine.
</p>
<p>You will find this value within &#8220;HKLM\SYSTEM\ControlSet001\services\MSExchange ADAccess\Instance0&#8243;
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/10/103110_2115_Setupcannot3.png" alt=""/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/10/setup-cannot-use-domain-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Exchange Schema, Organization and Domain Version with PowerShell</title>
		<link>http://www.sperrgebiet.org/2010/09/get-exchange-schema-organization-and-domain-version-with-powershell/</link>
		<comments>http://www.sperrgebiet.org/2010/09/get-exchange-schema-organization-and-domain-version-with-powershell/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 22:50:57 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Schema]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=361</guid>
		<description><![CDATA[Get Exchange Schema, Organization and Domain Version with Powershell. Also for multiple DC's at once.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure you already know that an Exchange Server heavily integrates into your Active Directory and that it can&#8217;t work without it. So it&#8217;s also necessary to prepare your Active Directory for that. By default, the setup does this job for you automatically. Also during a Service Pack the Schema is sometimes updated. So especially in an larger environment you want to have more control and want to wait that all Domain Controllers have time to replicate the Schema before you prepare the Exchange Organization and so on.
</p>
<p>To make it&#8217;s easier to monitor all your DC&#8217;s if the replication is working and if all DC&#8217;s already have the up to date Schema I&#8217;ve wrote a small PowerShell Script which does exactly that <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>So, let&#8217;s start two screen shots.
</p>
</p>
<p>The first one shows an older version of the script (did basically the same, but with the help of dsget.exe. Furthermore the output wasn&#8217;t that nice <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>But you see, I made that screenshot during our live update and you can see that not all DC&#8217;s have the new Schema already.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/09/090710_2250_GetExchange1.png" alt=""/>
	</p>
</p>
<p>This screen shot was made after running the current version and after everything is up to date.
</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/09/090710_2250_GetExchange2.png" alt=""/>
	</p>
</p>
<p>I think the Script is quite self-explaining.
</p>
<p>When you fire it up the without any parameter it will help you <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>I also made a little error handling. But I&#8217;m sure I&#8217;ve missed some circumstances.
</p>
<p>But it&#8217;s no problem, because I just read the Active Directory. So you can also run it as unprivileged user without problem.
</p>
<p>You can view the file via my web-based SVN at <a href="https://svn.sperrgebiet.org/public-web/public/PowerShell/Get-MXSVersion.ps1?view=markup">https://svn.sperrgebiet.org/public-web/public/PowerShell/Get-MXSVersion.ps1?view=markup</a>
	</p>
<p>or directly grab a copy at <a href="https://svn.sperrgebiet.org/public/PowerShell/Get-MXSVersion.ps1">https://svn.sperrgebiet.org/public/PowerShell/Get-MXSVersion.ps1</a>
	</p>
<p>Hope it&#8217;s helpful for you.
</p>
</p>
<p>Please let me know if something isn&#8217;t working like expected or if you have troubles with it. I&#8217;m sure it can be improved <span style="font-family:Wingdings">J</span>
	</p>
<p>_Hans</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/09/get-exchange-schema-organization-and-domain-version-with-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple Covering Window for Windows ;)</title>
		<link>http://www.sperrgebiet.org/2010/08/simple-covering-window-for-windows/</link>
		<comments>http://www.sperrgebiet.org/2010/08/simple-covering-window-for-windows/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 21:49:08 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Misc IT Stuff]]></category>
		<category><![CDATA[VB.net]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=344</guid>
		<description><![CDATA[Using a 'Covering Window' to hide areas on normal Windows]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently trying to learn the <a href="http://colemak.com/" target="_blank">Colemak Keyboard Layout</a>. For that, I&#8217;ve installed <a href="http://www.typefastertypingtutor.com/" target="_blank">TypeFaster</a>, which is a cool Tool to learn whatever keyboard layout you want. You have just to choose a  Lesson and then start typing <span style="font-family:Wingdings">J</span>
	</p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/08/080810_2148_SimpleCover1.png" alt=""/>
	</p>
</p>
<p>But there&#8217;s one drawback (in my opinion). The onscreen-keyboard is too large. Especially after a lesson where I saw the right location of the key&#8217;s I want to run a lession without the onscreen keyboard. But there is no option to do that. First I started to move the window out of the screen, but that isn&#8217;t the way an IT-Guy should solve such a problem <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>OK, the better solution would be to modify the source code so it fit&#8217;s one requirement, but I choose the easier way <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>Just build a small VB.net Tool which just creates and empty form and keep it in front of other windows.
</p>
<p>You can switch the behavior of the Window with the top button. There are just two options <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/080810_2148_SimpleCover2.png" alt=""/>
	</p>
<p>It&#8217;s just an simple 19KB Binary without any features like saving it&#8217;s last position or so. It&#8217;s always starts with its default values.
</p>
<p>You can download it at: <a href="http://www.sperrgebiet.org/wp-content/uploads/2010/08/CoveringWindow.zip">http://www.sperrgebiet.org/wp-content/uploads/2010/08/CoveringWindow.zip</a>
	</p>
<p>Or with the source code at: <a href="http://www.sperrgebiet.org/wp-content/uploads/2010/08/CoveringWindow_withSource.zip">http://www.sperrgebiet.org/wp-content/uploads/2010/08/CoveringWindow_withSource.zip</a>
	</p>
</p>
<p>Hope someone finds it useful too <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/08/simple-covering-window-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</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>
		<item>
		<title>Using Windows Mobile Device Emulator with Windows 7</title>
		<link>http://www.sperrgebiet.org/2010/06/using-windows-mobile-device-emulator-with-windows-7/</link>
		<comments>http://www.sperrgebiet.org/2010/06/using-windows-mobile-device-emulator-with-windows-7/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 16:40:38 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=296</guid>
		<description><![CDATA[How to get network connectivity with Windows Mobile Device Emulator on Windows 7]]></description>
			<content:encoded><![CDATA[<p>Hy</p>
<p>To run the Windows Mobile 6.5 Device Emulators you have to get the Emulator Images first. You&#8217;ll find them at: <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&#038;FamilyID=20686a1d-97a8-4f80-bc6a-ae010e085a6e">http://www.microsoft.com/downloads/details.aspx?displaylang=en&#038;FamilyID=20686a1d-97a8-4f80-bc6a-ae010e085a6e</a></p>
<p>Furthermore a Mobile without network connectivity is quite boring. But the &#8220;Virtual Machine Network Driver&#8221; isn&#8217;t available as single download any more. So you have to download the Virtual PC 2007 Setup at: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=04d26402-3199-48a3-afa2-2dc0b40a73b6&#038;DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=04d26402-3199-48a3-afa2-2dc0b40a73b6&#038;DisplayLang=en</a></p>
<p>But it&#8217;s not necessary to install it. Just follow the steps as Brian Peek describes at his blog: <a href="http://www.brianpeek.com/blog/archive/2009/05/02/windows-virtual-pc-and-the-microsoft-device-emulator.aspx">http://www.brianpeek.com/blog/archive/2009/05/02/windows-virtual-pc-and-the-microsoft-device-emulator.aspx</a></p>
<p>After that you can bind your Emulator Image to your network card and use it for what ever you want  <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://www.sperrgebiet.org/wp-content/uploads/2010/06/mobile-device-emulator.jpg" alt="Mobile Device Emulator Network Connectivity" title="mobile-device-emulator" width="870" height="555" class="aligncenter size-full wp-image-297" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/06/using-windows-mobile-device-emulator-with-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SharePoint Designer 2010</title>
		<link>http://www.sperrgebiet.org/2010/04/sharepoint-designer-2010-download/</link>
		<comments>http://www.sperrgebiet.org/2010/04/sharepoint-designer-2010-download/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 20:37:45 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Designer 2010]]></category>

		<guid isPermaLink="false">http://www.sperrgebiet.org/?p=294</guid>
		<description><![CDATA[SharePoint 2010 RTM Download]]></description>
			<content:encoded><![CDATA[<p>If you are in the lucky situation to have access to a TechNet or MSDN Subscription you already have access to Office 2010 RTM and SharePoint 2010 RTM. But have you wondered why there is no download for SharePoint Designer 2010 RTM?
</p>
<p>Because it&#8217;s a public download <img src='http://www.sperrgebiet.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
</p>
<p>You&#8217;ll find it at the MS Download Center:
</p>
<p><strong>SharePoint Designer 2010 64-bit:</strong><br />
		<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=566d3f55-77a5-4298-bb9c-f55f096b125d">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=566d3f55-77a5-4298-bb9c-f55f096b125d</a>
	</p>
<p><strong>SharePoint Designer 2010 32-bit:</strong><br />
		<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=d88a1505-849b-4587-b854-a7054ee28d66">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=d88a1505-849b-4587-b854-a7054ee28d66</a>
	</p>
</p>
<p>Furthermore you can also give <strong>SharePoint Foundation 2010</strong> (the follower of WSS3.0) a try. It&#8217;s still free: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595&amp;displaylang=en</a>
	</p>
</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sperrgebiet.org/2010/04/sharepoint-designer-2010-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

