<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>I've Made A Huge Mistake</title>
	
	<link>http://almostdailytech.com</link>
	<description>Daily Adventures in IT</description>
	<lastBuildDate>Sun, 22 Aug 2010 21:34:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/IveMadeAHugeMistake" /><feedburner:info uri="ivemadeahugemistake" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Upgrading Active Directory to 2008 R2, A Collection of Resources</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/gaYxWhaE6G4/</link>
		<comments>http://almostdailytech.com/2010/08/22/upgrading-active-directory-to-2008-r2-a-collection-of-resources/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 21:16:13 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD Upgrade]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=384</guid>
		<description><![CDATA[I&#8217;ve recently had a chance to finally upgrade to 2008 R2, or started the process at least. I wanted to list out all the resources I used as reference. The Master Upgrade Guide from Technet http://technet.microsoft.com/en-us/library/cc731188(WS.10).aspx Few Others Upgrade Overview http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/05/26/transitioning-your-active-directory-to-windows-server-2008-r2.aspx http://blogs.technet.com/b/askds/archive/2008/11/11/so-you-want-to-upgrade-to-windows-2008-domain-controllers-adprep.aspx Firewall Ports Required http://support.microsoft.com/kb/179442 http://support.microsoft.com/kb/832017/ Schema Stuff http://technet.microsoft.com/en-us/library/testing-for-active-directory-schema-extension-conflicts(WS.10).aspx http://blogs.technet.com/b/askds/archive/2010/04/16/friday-mail-sack-i-live-again-edition.aspx &#8220;Search for Is there [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently had a chance to finally upgrade to 2008 R2, or started the process at least. I wanted to list out all the resources I used as reference.</p>
<p>The Master Upgrade Guide from Technet</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc731188(WS.10).aspx">http://technet.microsoft.com/en-us/library/cc731188(WS.10).aspx</a></p>
<p>Few Others Upgrade Overview</p>
<p><a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/05/26/transitioning-your-active-directory-to-windows-server-2008-r2.aspx">http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/05/26/transitioning-your-active-directory-to-windows-server-2008-r2.aspx</a></p>
<p><a href="http://blogs.technet.com/b/askds/archive/2008/11/11/so-you-want-to-upgrade-to-windows-2008-domain-controllers-adprep.aspx">http://blogs.technet.com/b/askds/archive/2008/11/11/so-you-want-to-upgrade-to-windows-2008-domain-controllers-adprep.aspx</a></p>
<p>Firewall Ports Required</p>
<p><a href="http://support.microsoft.com/kb/179442">http://support.microsoft.com/kb/179442</a></p>
<p><a href="http://support.microsoft.com/kb/832017/">http://support.microsoft.com/kb/832017/</a></p>
<p>Schema Stuff</p>
<p><a href="http://technet.microsoft.com/en-us/library/testing-for-active-directory-schema-extension-conflicts(WS.10).aspx">http://technet.microsoft.com/en-us/library/testing-for-active-directory-schema-extension-conflicts(WS.10).aspx</a></p>
<p><a href="http://blogs.technet.com/b/askds/archive/2010/04/16/friday-mail-sack-i-live-again-edition.aspx">http://blogs.technet.com/b/askds/archive/2010/04/16/friday-mail-sack-i-live-again-edition.aspx</a></p>
<p>&#8220;Search for Is there a way to isolate a DC in order to do an AD Schema upgrade?&#8221; for the support policy on doing this.</p>
<p>Preparing For The Worst (Yikes!)</p>
<p><a href="http://technet.microsoft.com/en-us/library/planning-active-directory-forest-recovery(WS.10).aspx">http://technet.microsoft.com/en-us/library/planning-active-directory-forest-recovery(WS.10).aspx</a></p>
<p>Installing AD on separate volumes for performance (You want to make sure you have enough RAM to load the entire DB)</p>
<p><a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/02/09/active-directory-on-separate-volumes.aspx">http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/02/09/active-directory-on-separate-volumes.aspx</a></p>
<p>Running ADPrep (Gives you the ADSIEdit.mmc way to confirm /SchemaPrep /DomainPrep /RODCPrep)</p>
<p><a href="http://technet.microsoft.com/en-us/library/dd464018(WS.10).aspx">http://technet.microsoft.com/en-us/library/dd464018(WS.10).aspx</a></p>
<p>Common mistakes when upgrading from 2000 to 2003 (still some are relevant)</p>
<p><a href="http://support.microsoft.com/kb/555040">http://support.microsoft.com/kb/555040</a></p>
<p>Setting NTP server on the new PDC Master (Don&#8217;t forget this step)</p>
<p><a href="http://blogs.dirteam.com/blogs/paulbergson/archive/2010/05/18/moving-the-ntp-service-to-a-new-pdce.aspx">http://blogs.dirteam.com/blogs/paulbergson/archive/2010/05/18/moving-the-ntp-service-to-a-new-pdce.aspx</a></p>
<p>Putting a DC in a VM?</p>
<p><a href="http://blogs.technet.com/b/askds/archive/2010/06/10/how-to-virtualize-active-directory-domain-controllers-part-1.aspx">http://blogs.technet.com/b/askds/archive/2010/06/10/how-to-virtualize-active-directory-domain-controllers-part-1.aspx</a></p>
<p><a href="http://blogs.technet.com/b/askds/archive/2010/06/15/how-to-virtualize-active-directory-domain-controllers-part-2.aspx">http://blogs.technet.com/b/askds/archive/2010/06/15/how-to-virtualize-active-directory-domain-controllers-part-2.aspx</a></p>
<p>Verifying SRV DNS Records</p>
<p><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;816587">http://support.microsoft.com/default.aspx?scid=kb;en-us;816587</a><br />
Transferring FSMO Roles via Powershell</p>
<p><a title="http://msmvps.com/blogs/ad/archive/2010/08/10/using-powershell-to-transfer-fsmo-roles.aspx" href="http://msmvps.com/blogs/ad/archive/2010/08/10/using-powershell-to-transfer-fsmo-roles.aspx" target="_blank">http://msmvps.com/blogs/ad/archive/2010/08/10/using-powershell-to-transfer-fsmo-roles.aspx</a></p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/gaYxWhaE6G4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/08/22/upgrading-active-directory-to-2008-r2-a-collection-of-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/08/22/upgrading-active-directory-to-2008-r2-a-collection-of-resources/</feedburner:origLink></item>
		<item>
		<title>MD5 Checksum</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/k5NZ_PzoNFg/</link>
		<comments>http://almostdailytech.com/2010/07/28/md5-checksum/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 00:22:16 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Checksum]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=379</guid>
		<description><![CDATA[I&#8217;m sure there are all kinds of tools out there to check MD5 hashs of files but here is one provided by Microsoft. It&#8217;s very small and really easy to use. I figured it was at least noting for future use. http://support.microsoft.com/kb/841290]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure there are all kinds of tools out there to check MD5 hashs of files but here is one provided by Microsoft. It&#8217;s very small and really easy to use. I figured it was at least noting for future use.</p>
<p><a title="http://support.microsoft.com/kb/841290" href="http://support.microsoft.com/kb/841290" target="_blank">http://support.microsoft.com/kb/841290</a></p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/k5NZ_PzoNFg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/07/28/md5-checksum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/07/28/md5-checksum/</feedburner:origLink></item>
		<item>
		<title>Querying Active Directory Users For Login Script Value</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/U6CMtVbzHd4/</link>
		<comments>http://almostdailytech.com/2010/07/27/querying-active-directory-users-for-login-script-value/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 03:02:59 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Login Script]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=373</guid>
		<description><![CDATA[By default, in Active Directory Users and Computers, if you try to search on the attribute value for login script, this field isn&#8217;t an option in the user drop down. You can however use the tool DSQuery to get the information you need. Try running the following command. DSQuery * -Filter &#8220;(&#38;(sAMAccountType=805306368)(scriptPath=yourscriptnamehere))&#8221;  -Attr samAccountName -L -Limit 0]]></description>
			<content:encoded><![CDATA[<p>By default, in Active Directory Users and Computers, if you try to search on the attribute value for login script, this field isn&#8217;t an option in the user drop down. You can however use the tool DSQuery to get the information you need. Try running the following command.</p>
<p>DSQuery * -Filter &#8220;(&amp;(sAMAccountType=805306368)(scriptPath=yourscriptnamehere))&#8221;  -Attr samAccountName -L -Limit 0</p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/U6CMtVbzHd4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/07/27/querying-active-directory-users-for-login-script-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/07/27/querying-active-directory-users-for-login-script-value/</feedburner:origLink></item>
		<item>
		<title>Deploying Outlook Safe Sender List to Minimizie RPC Traffic Through Login Script</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/5Mqy0a7ygII/</link>
		<comments>http://almostdailytech.com/2010/07/05/deploying-outlook-safe-sender-list-to-minimizie-rpc-traffic-through-login-script/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 19:28:37 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Outlook]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Safe Sender]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=357</guid>
		<description><![CDATA[Microsoft has beaten me to the punch and when I say beaten I mean I&#8217;m not updating my blog fast enough, on how to deploy safe senders in Outlook. http://support.microsoft.com/kb/2252421 It&#8217;s a very good detailed write up which clears up what people generally get held up on. Usually you load up the ADM template for [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has beaten me to the punch and when I say beaten I mean I&#8217;m not updating my blog fast enough, on how to deploy safe senders in Outlook.</p>
<p>http://support.microsoft.com/kb/2252421</p>
<p>It&#8217;s a very good detailed write up which clears up what people generally get held up on. Usually you load up the ADM template for Outlook, specify the path to your import file, fire up Outlook and nothing in the safe senders list. You then scratch head, run a gpupdate.exe /force and try again, still nothing. The trick is one of these registry keys that is not in this policy has to be set to tell Outlook to indeed yes please load this list up.</p>
<p>Key: HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\1x.0\Outlook\Mail</p>
<p>Key: HKEY_CURRENT_USER\Software\Microsoft\Office\1x.0\Outlook\Mail</p>
<p>DWORD: JunkMailImportLists<br />
Value: 1</p>
<p>Version 11.0 is 2003, 12.0 is 2007 and 14.0 is 2010.</p>
<p>Ok so how do we push this key out to the environment? In the KB it lists out a few choices you can use such as, Group Policy, LoginScript, and Outlook Customization tool. In the KB they actually give you the new ADM file to upload to your domain controller to push out this new key. Those guys thought of everything! Since it is using this key, HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\1x.0\Outlook\Mail your Outlook client will always re-import the list. What if though your list doesn&#8217;t change that much, maybe once every 6 months or even longer. Every time you launch Outlook you are going to get an RPC call across the network to check this list, see that there is no new to update and continue to load. Why do you want your clients to make this unnecessary RPC call when you KNOW there is nothing new. Granted if we are FORCING what will always be in this list then yes we&#8217;d want Outlook to check on each launch and add the appropriate users or domains to the list. But if you are just adding some &#8220;suggested&#8221; safe senders and if people choose to remove them well then that is ok too. If that is the case why don&#8217;t we have Outlook only check the list when we KNOW there is a new update for them. To do that we use the HKEY_CURRENT_USER\Software\Microsoft\Office\1x.0\Outlook\Mail</p>
<p>Once Outlook loads, it will set this value from 1 back to 0 and no longer check the list. Sounds exactly like we may want to do, now how do we roll this out? First we could use Group Policy using a custom ADM template like above to flip this key. However this isn&#8217;t really what we want as every time the policy refreshes, it will set they key back to 1 then check the list again on next launch. This is better than the other key but really, not that much better. Solution: enter the loginscript.</p>
<p>The way I went about solving this problem was to read/write a registry key to check the value, if the value you have matches what&#8217;s in the script then we don&#8217;t need to import our new list. If it doesn&#8217;t match, change the HKEY_CURRENT_USER\Software\Microsoft\Office\1x.0\Outlook\Mail back to 1 so when the user launches Outlook it will indeed re-import the new list. Also since you are checking a PER USER setting, you need to get the SID of the user so you can store your custom key in the correct location. This is needed especially if you have a machine shared by multiple people. The example below is for Outlook 2007.</p>
<p>Function SafeSenders()</p>
<p>On error resume next<br />
&#8216;needed for first run if no regkey exists, will through an error, need script to continue to run</p>
<p>Dim ojbFSO, shell, serialnumber, scriptrun</p>
<p>Set ObjFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
set shell =CreateObject(&#8220;wscript.shell&#8221;)</p>
<p>Set oWshNetwork = CreateObject(&#8220;WScript.Network&#8221;)</p>
<p>&#8216;Getting Sid<br />
Set oUserAccount = GetObject(&#8220;winmgmts://./root/cimv2&#8243;) _<br />
.Get(&#8220;Win32_UserAccount.Domain=&#8217;&#8221; &amp; oWshNetwork.UserDomain &amp; &#8220;&#8216;&#8221; _<br />
&amp; &#8220;,Name=&#8217;&#8221; &amp; oWshNetwork.UserName &amp; &#8220;&#8216;&#8221;)</p>
<p>sUserSID = oUserAccount.SID<br />
&#8216;Debug<br />
&#8216;msgbox sUserSID</p>
<p>reglocation = &#8220;HKEY_USERS\&#8221; &amp; sUserSID &amp; &#8220;\YOUR CUSTOM KEY\SafeSenders&#8221;</p>
<p>&#8216;Debug<br />
&#8216;Msgbox reglocation</p>
<p>&#8216;Current Version<br />
serialnumber = &#8220;whateveryouwant&#8221;</p>
<p>&#8216;Registry Key Location<br />
scriptrun = shell.regread(reglocation)</p>
<p>&#8216;Debug<br />
&#8216;Msgbox ScriptRun</p>
<p>if scriptrun = serialnumber Then<br />
&#8216;Current Version already run on machine, nothing left to do in this function<br />
&#8216;Debug<br />
&#8216;Msgbox &#8220;Script already ran, exiting function&#8221;<br />
Exit Function</p>
<p>End if</p>
<p>shell.RegWrite &#8220;HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\12.0\Outlook\Options\Mail\JunkMailImportLists&#8221;,&#8221;1&#8243;, &#8220;REG_DWORD&#8221;</p>
<p>shell.RegWrite reglocation,serialnumber, &#8220;REG_SZ&#8221;<br />
&#8216;Script completed, updating registry<br />
&#8216;Debug<br />
&#8216;msgbox sUserSID</p>
<p>End Function</p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/5Mqy0a7ygII" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/07/05/deploying-outlook-safe-sender-list-to-minimizie-rpc-traffic-through-login-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/07/05/deploying-outlook-safe-sender-list-to-minimizie-rpc-traffic-through-login-script/</feedburner:origLink></item>
		<item>
		<title>Outlook 2010 and Exchange 2003 Direct Booking Fix(Aka Enabling it)</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/Vz7z_lCaH-E/</link>
		<comments>http://almostdailytech.com/2010/06/05/outlook-2010-and-exchange-2003-direct-booking-fixaka-enabling-it/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 23:12:51 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Exchange 2003]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[Direct Booking]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=350</guid>
		<description><![CDATA[One way to schedule resources in Exchange 2003 is by using Direct Booking. http://msexchangeteam.com/archive/2006/02/22/420275.aspx In Exchange 2007/2010 the resources are now actually special mailbox types combined with the Availability Service too book resources. If you use Outlook 2000/2002/2003/2007 with Exchange 2003 you have no issues doing Direct Booking as stated here. http://support.microsoft.com/kb/291616 What if you [...]]]></description>
			<content:encoded><![CDATA[<p>One way to schedule resources in Exchange 2003 is by using Direct Booking.</p>
<p><a title="http://msexchangeteam.com/archive/2006/02/22/420275.aspx" href="http://msexchangeteam.com/archive/2006/02/22/420275.aspx">http://msexchangeteam.com/archive/2006/02/22/420275.aspx</a></p>
<p>In Exchange 2007/2010 the resources are now actually special mailbox types combined with the Availability Service too book resources.</p>
<p>If you use Outlook 2000/2002/2003/2007 with Exchange 2003 you have no issues doing Direct Booking as stated here.</p>
<p><a title="http://support.microsoft.com/kb/291616" href="http://support.microsoft.com/kb/291616" target="_self">http://support.microsoft.com/kb/291616</a></p>
<p>What if you are on Outlook 2010 and Exchange 2003? The Outlook team assumes you are using Exchange 2007/2010 so direct booking is not enabled by default in the Outlook 2010 client. If a user tries to use Direct Booking as in previous versions of Outlook they will get a bounce back message saying the resource was not booked properly. Clearly confusing to the end user.</p>
<p>The fix, enable the Direct Booking feature in Outlook 2010. It will now work like previous versions of Outlook.</p>
<p><a title="http://support.microsoft.com/kb/982774" href="http://support.microsoft.com/kb/982774" target="_blank">http://support.microsoft.com/kb/982774</a></p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/Vz7z_lCaH-E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/06/05/outlook-2010-and-exchange-2003-direct-booking-fixaka-enabling-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/06/05/outlook-2010-and-exchange-2003-direct-booking-fixaka-enabling-it/</feedburner:origLink></item>
		<item>
		<title>Is a Service Running Via Loginscript?</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/V5P1JGCbXbo/</link>
		<comments>http://almostdailytech.com/2010/05/28/is-a-service-running-via-loginscript/#comments</comments>
		<pubDate>Fri, 28 May 2010 12:39:02 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Service]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=343</guid>
		<description><![CDATA[In the last few weeks I&#8217;ve had to write a few new functions in VBScript to solve some issues that have come up. One of them was to see if a service was running on login and if it wasn&#8217;t to install it. Here is the function I wrote to determine if the service was [...]]]></description>
			<content:encoded><![CDATA[<p>In the last few weeks I&#8217;ve had to write a few new functions in VBScript to solve some issues that have come up. One of them was to see if a service was running on login and if it wasn&#8217;t to install it. Here is the function I wrote to determine if the service was running, feel free to steal this for your own environment like all good scriptwriters do. It&#8217;s nothing glamorous.</p>
<p>Also you have to pass is not the display name of the service which is seen in the Services MMC snap-in but the actual service name. To find this out run &#8220;sc query&#8221; from a command box. This will display all services with their actual services name to display name. Example: wuauserv is Windows Update.</p>
<p>function isServiceRunning(strComputer,strServiceName)</p>
<p>Dim objWMIService, strWMIQuery</p>
<p>strWMIQuery = &#8220;Select * from Win32_Service Where Name = &#8216;&#8221; &amp; strServiceName &amp; &#8220;&#8216; and state=&#8217;Running&#8217;&#8221;</p>
<p>Set objWMIService = GetObject(&#8220;winmgmts:&#8221; _<br />
&amp; &#8220;{impersonationLevel=impersonate}!\\&#8221; &amp; strComputer &amp; &#8220;\root\cimv2&#8243;)</p>
<p>if objWMIService.ExecQuery(strWMIQuery).Count &gt; 0 then<br />
isServiceRunning = true<br />
else<br />
isServiceRunning = false<br />
end if</p>
<p>end function</p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/V5P1JGCbXbo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/05/28/is-a-service-running-via-loginscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/05/28/is-a-service-running-via-loginscript/</feedburner:origLink></item>
		<item>
		<title>Win 7 Home Folder Redirection Fix</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/byouO5rJ938/</link>
		<comments>http://almostdailytech.com/2010/05/27/win-7-home-folder-redirection-fix/#comments</comments>
		<pubDate>Thu, 27 May 2010 15:58:49 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Folder Redirection]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=322</guid>
		<description><![CDATA[If you are using folder redirection on Windows 7 you may have noticed that you are constantly connecting and disconnecting. Finally a fix has been released. You may also be getting a blue screen, apply the second update as well. http://support.microsoft.com/kb/981872 http://support.microsoft.com/kb/981109]]></description>
			<content:encoded><![CDATA[<p>If you are using folder redirection on Windows 7 you may have noticed that you are constantly connecting and disconnecting. Finally a fix has been released. You may also be getting a blue screen, apply the second update as well.</p>
<p><a title="http://support.microsoft.com/kb/981872" href="http://support.microsoft.com/kb/981872" target="_blank">http://support.microsoft.com/kb/981872</a></p>
<p><a title="http://support.microsoft.com/kb/981109" href="http://support.microsoft.com/kb/981109" target="_blank">http://support.microsoft.com/kb/981109</a></p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/byouO5rJ938" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/05/27/win-7-home-folder-redirection-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/05/27/win-7-home-folder-redirection-fix/</feedburner:origLink></item>
		<item>
		<title>My Favorite Microsoft KB Article Of All Time</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/_vrxnx83C6U/</link>
		<comments>http://almostdailytech.com/2010/05/20/my-favorite-microsoft-kb-article-of-all-time/#comments</comments>
		<pubDate>Thu, 20 May 2010 13:47:18 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[brilliant]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=341</guid>
		<description><![CDATA[I try to keep an eye out for new KB articles for specific products I deal with day to day (http://almostdailytech.com/2009/08/27/microsoft-product-rss-feeds/ ). Initially reading the headline is my RSS feed of &#8221; Windows fails to start with error Missing or Corrupt ntoskrnl.exe when keys are pressed during startup&#8221;  had my attention thanks to a few [...]]]></description>
			<content:encoded><![CDATA[<p>I try to keep an eye out for new KB articles for specific products I deal with day to day (<a title="http://almostdailytech.com/2009/08/27/microsoft-product-rss-feeds/" href="http://almostdailytech.com/2009/08/27/microsoft-product-rss-feeds/" target="_blank">http://almostdailytech.com/2009/08/27/microsoft-product-rss-feeds/</a> ). Initially reading the headline is my RSS feed of &#8221; Windows fails to start with error Missing or Corrupt ntoskrnl.exe when keys are pressed during startup&#8221;  had my attention thanks to a few key words such as &#8220;ntoskrnl.exe&#8221;, &#8220;missing&#8221; and &#8220;corrupt&#8221;. On further reading the cause (hitting buttons during startup apparently) and the solution which is just absolutely brilliant (just stop doing that stupid), this has officially become my favorite KB article of all time. I&#8217;d like to meet the engineer that wrote this KB and shake his hand.</p>
<p><a title="http://support.microsoft.com/kb/2022960" href="http://support.microsoft.com/kb/2022960" target="_blank">http://support.microsoft.com/kb/2022960</a></p>
<h1></h1>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/_vrxnx83C6U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/05/20/my-favorite-microsoft-kb-article-of-all-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/05/20/my-favorite-microsoft-kb-article-of-all-time/</feedburner:origLink></item>
		<item>
		<title>Clearing Out Large Amounts of Spam in Exchange 2003 or How To Use aqadmcli.exe</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/Z9nIcNqxeuA/</link>
		<comments>http://almostdailytech.com/2010/05/14/clearing-out-large-amounts-of-spam-in-exchange-2003-or-how-to-use-aqadmcli-exe/#comments</comments>
		<pubDate>Fri, 14 May 2010 20:44:46 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Exchange 2003]]></category>
		<category><![CDATA[aqadmcli.exe]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=336</guid>
		<description><![CDATA[Powershell is awesome. We all know it. However if you are still on Exchange 2003, you &#8220;sometimes&#8221; (read all the time) have to do things that are less optimal as opposed to a one line powershell script. I&#8217;ve recently run into a scenario where we&#8217;ve had an account that has been compromised and sent out [...]]]></description>
			<content:encoded><![CDATA[<p>Powershell is awesome. We all know it. However if you are still on Exchange 2003, you &#8220;sometimes&#8221; (read all the time) have to do things that are less optimal as opposed to a one line powershell script. I&#8217;ve recently run into a scenario where we&#8217;ve had an account that has been compromised and sent out a lot of spam to &#8220;many&#8221; (read thousands) different users and domains. If it is only a few domains you can easily use ESM, search the queue for that user, Delete with No NDR, you are all done. But if you were like myself and had 1 or 2 messages to thousands of mail queues, this wont cut it. Enter the tool aqadmcli.exe. This little tool can be nabbed at <a title="ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe " href="ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe " target="_blank">ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe </a>and is used just for the task at hand, clearing out SMTP queues from the command line.</p>
<p>Alright so we got our command line tool, let&#8217;s let her rip and clean house. If you run adadmcli.exe /? you get a whole list of different usage commands which we wont go into depth here, just how to solve our problem at hand. However how you run it on a front end Exchange server and back end server in a cluster our a little bit different and isn&#8217;t completely clear in /?. But let&#8217;s dive into the process I used for this.</p>
<p>1.) First things first, disable this account in AD. Their account has been compromised, it&#8217;s getting turned off. We&#8217;ll get you back online later after this mess is cleared up thank you very much.</p>
<p>2.) Disable outbound mail for your server or servers (front and back). Let&#8217;s do our little part of trying not to completely turn the Internet into a spam wasteland if we can help it. We do this by simply going into ESM, expand the server, click on &#8220;Queues&#8221; and hit the big &#8220;Disable Outbound Mail&#8221; button. If you are in a Front End/Back End architecture, you would do it on both your <strong>Front End</strong> server and the <strong>Back End</strong> server this persons account resides on. We have clean up in multiple places that needs to take place most likely. Your back end may be completely clean but it may also be backed up at this point. After this step, all outbound mail for your organization is disabled.</p>
<p>3.)  Let&#8217;s clean up the front end servers first so we can get outbound mail flowing for the other servers that don&#8217;t need to be cleaned. Copy over aqadmcli.exe to the front end server. Open up a command prompt and enter aqadmcli.exe and hit enter. Now it&#8217;s time to do some cleaning.</p>
<p>4.) Since you are on the front end, you really don&#8217;t need to set the server since it defaults to the local host . You can define which queue you want to target but in our case, we are going to clear all of them of ANY mail from this user. So yes if there is actual legitimate mail from this user in these queues, they will be gone as well. To me I&#8217;m ok with this, your account just sent out 250k worth of spam clogging up my queues, your mail privileged has been revoked while I work on this.  The actual command we run is the following without the quotes, &#8220;delmsg flags=SENDER,sender=username@yourdomain&#8221; and hit enter. At this point the tool is doing it&#8217;s job, it&#8217;s looking through all the queues on this server from any messages from this account and is deleting it. You&#8217;ll see it scroll through and how many messages it deleted. I tend to run this a few times just in case there are any messages that are still in transit. After this type quit and enable outbound mail. Do this same process on any other front end servers.</p>
<p>5.) At this point outbound mail for your org is up and clean for your front end servers and all back end servers that don&#8217; t have this compromised account. Now time to clean up the back end server. Once again, copy over aqadmcli.exe and run the program as above. Now since we are on a back end server in a cluster we have to actually set the server we are on and the virtual server that is running on it. We do this by running this command without the quotes, &#8220;setserver sn=hostname,vs=number&#8221; So for example if my backend server is named xbe01 and the virtual server it is hosting is xvs01 the command would look like &#8220;setserver sn=xbe01,vs=1&#8243;. After this is set, we run the same command as above to clear out all mail queues from mail from this user, &#8220;delmsg flags=SENDER,sender=username@yourdomain&#8221;. Once again  I run this a few times make sure all messages that were in transit are completely cleared out. Once this comes back clean we can quit this program and re-enable outbound mail for this back end server. All mail is now flowing outbound for your org.</p>
<p>6.) The last step is to &#8220;educate&#8221; the user on what happened and change their password/enable their account as part of your normal account enabling process, you do have those right.</p>
<p>And that&#8217;s it you are done. It&#8217;s little more work than a sweet, sweet powershell command but MUCH faster than actually using ESM. Now sit back and monitor your queues for a bit to make sure everything is ok, that spam didn&#8217;t stand a chance.</p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/Z9nIcNqxeuA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/05/14/clearing-out-large-amounts-of-spam-in-exchange-2003-or-how-to-use-aqadmcli-exe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/05/14/clearing-out-large-amounts-of-spam-in-exchange-2003-or-how-to-use-aqadmcli-exe/</feedburner:origLink></item>
		<item>
		<title>Changes to KMS and How it Makes the DNS Query</title>
		<link>http://feedproxy.google.com/~r/IveMadeAHugeMistake/~3/qENKTNMrXec/</link>
		<comments>http://almostdailytech.com/2010/04/18/changes-to-kms-and-how-it-makes-the-dns-query/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 19:16:18 +0000</pubDate>
		<dc:creator>Mark Morowczynski</dc:creator>
				<category><![CDATA[Server 2008 R2]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[KMS]]></category>

		<guid isPermaLink="false">http://almostdailytech.com/?p=329</guid>
		<description><![CDATA[If you use multi-label SRV records to point clients to your KMS server then this update is for you. It will resolve a bug you may not be aware you were seeing. http://support.microsoft.com/kb/981197]]></description>
			<content:encoded><![CDATA[<p>If you use multi-label SRV records to point clients to your KMS server then this update is for you. It will resolve a bug you may not be aware you were seeing.</p>
<p><a title="http://support.microsoft.com/kb/981197" href="http://support.microsoft.com/kb/981197" target="_blank">http://support.microsoft.com/kb/981197</a></p>
<img src="http://feeds.feedburner.com/~r/IveMadeAHugeMistake/~4/qENKTNMrXec" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://almostdailytech.com/2010/04/18/changes-to-kms-and-how-it-makes-the-dns-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://almostdailytech.com/2010/04/18/changes-to-kms-and-how-it-makes-the-dns-query/</feedburner:origLink></item>
	</channel>
</rss>
