<?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>jamesoff.net &#187; Microsoft</title>
	<atom:link href="http://jamesoff.net/site/category/sysadmin/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesoff.net/site</link>
	<description>you heard</description>
	<lastBuildDate>Thu, 01 Sep 2011 17:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>tarsnap under cygwin</title>
		<link>http://jamesoff.net/site/2009/09/10/tarsnap-under-cygwin/</link>
		<comments>http://jamesoff.net/site/2009/09/10/tarsnap-under-cygwin/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 10:36:31 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[tarsnap]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=386</guid>
		<description><![CDATA[To get tarsnap working under cygwin, here&#8217;s what you need to do: Install the following packages using the cygwin setup tool: gcc4 make openssl (needed for runtime, not for building) openssl-devel zlib-devel Download and extract the tarsnap code. Run ./configure (this seems to be much slower on cygwin than on other more UNIXy platforms) Run [...]]]></description>
			<content:encoded><![CDATA[<p>To get <a href="http://beta.tarsnap.com">tarsnap </a>working under cygwin, here&#8217;s what you need to do:</p>

<ol>
    <li>Install the following packages using the cygwin setup tool:
<ul>
    <li>gcc4</li>
    <li>make</li>
    <li>openssl (needed for runtime, not for building)</li>
    <li>openssl-devel</li>
    <li>zlib-devel</li>
</ul></li>


    <li>Download and extract the <a href="https://beta.tarsnap.com/download.html">tarsnap code</a>.</li>

    <li>Run <code>./configure</code> (this seems to be much slower on cygwin than on other more UNIXy platforms)</li>

    <li>Run <code>make all install clean</code></li>
</ol>

<p>Tarsnap should now be installed and you can use it in the normal fashion &#8211; create a host key with <code>tarsnap-keygen</code> and then get backing up!</p>

<p>Edit 2009-12-16: checkers from #tarsnap on EFnet has written a post with scripts for Linux and Cygwin tarsnapping at <a href="http://www.bluebottle.net.au/blog/2009/tarsnap-backups-on-windows-and-linux">http://www.bluebottle.net.au/blog/2009/tarsnap-backups-on-windows-and-linux</a></p>

<p>You may also wish at add <code>--prefix=/</code> to the <code>configure</code> command line, as <code>/usr/local</code> isn&#8217;t in the default path.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2009/09/10/tarsnap-under-cygwin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking for another process before starting JKDefrag</title>
		<link>http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/</link>
		<comments>http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 14:22:58 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/</guid>
		<description><![CDATA[A user on the JKDefrag forum was asking about not running JKDefrag if another process is running (as they don&#8217;t play nice together), so I whipped this up. You&#8217;ll need PsList from SysInternals in your path somewhere. Change the three SET lines to point to jkdefrag, give the parameters you want to use, and the [...]]]></description>
			<content:encoded><![CDATA[<p>A user on the <a href="http://www.kessels.com/forum/viewtopic.php?t=695">JKDefrag forum</a> was asking about not running JKDefrag if another process is running (as they don&#8217;t play nice together), so I whipped this up.</p>

<p>You&#8217;ll need <a href="http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsList.mspx">PsList</a> from SysInternals in your path somewhere.</p>

<p>Change the three SET lines to point to jkdefrag, give the parameters you want to use, and the name of the program to avoid. (Get the name of the program from PsList.)</p>

<p>The &#8220;>2 NUL&#8221; sends stderr to NUL to avoid printing the PsList banner. It works on Vista, not sure about XP/2003. If it doesn&#8217;t just remove it and live with the PsList banner showing up.</p>

<p>Making this check for more than one process is an exercise for the reader. Also, you could use this with PsExec to check for the process on a remote host and then launch JKDefrag over there.</p>


<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">echo</span> off
<span style="color: #808080; font-style: italic;">
REM Only run jkdefrag if another process is not running</span>
<span style="color: #808080; font-style: italic;">
REM Path to jkdefrag</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> JKDEFRAG=c:\jkdefrag\jkdefrag.exe
<span style="color: #808080; font-style: italic;">
REM Options for jkdefrag</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> JKDEFRAGOPTS=-a 3
<span style="color: #808080; font-style: italic;">
REM Process we don't want running</span>
<span style="color: #b1b100; font-weight: bold;">SET</span> AVOID=explorer
<span style="color: #808080; font-style: italic;">
&nbsp;
REM Here we go!</span>
&nbsp;
pslist <span style="color: #33cc33;">%</span><span style="color: #448888;">AVOID</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">&gt;</span> <span style="color: #0000ff; font-weight: bold;">NUL</span> 2<span style="color: #33cc33;">&gt;</span> <span style="color: #0000ff; font-weight: bold;">NUL</span>
<span style="color: #00b100; font-weight: bold;">if</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">ERRORLEVEL</span><span style="color: #33cc33;">%</span> == 0 <span style="color: #00b100; font-weight: bold;">goto</span> skip
<span style="color: #808080; font-style: italic;">
REM If we made it here, pslist didn't find the process</span>
<span style="color: #b1b100; font-weight: bold;">echo</span> Couldn't find <span style="color: #33cc33;">%</span><span style="color: #448888;">AVOID</span><span style="color: #33cc33;">%</span> running, starting jkdefrag...
<span style="color: #33cc33;">%</span><span style="color: #448888;">JKDEFRAG</span><span style="color: #33cc33;">%</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">JKDEFRAGOPTS</span><span style="color: #33cc33;">%</span>
<span style="color: #00b100; font-weight: bold;">goto</span> end
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">skip</span>
<span style="color: #b1b100; font-weight: bold;">echo</span> <span style="color: #33cc33;">%</span><span style="color: #448888;">AVOID</span><span style="color: #33cc33;">%</span> is running, <span style="color: #000000; font-weight: bold;">not</span> running jkdefrag
&nbsp;
:<span style="color: #b100b1; font-weight: bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/10/23/checking-for-another-process-before-starting-jkdefrag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Murdering dogs</title>
		<link>http://jamesoff.net/site/2007/04/16/murdering-dogs/</link>
		<comments>http://jamesoff.net/site/2007/04/16/murdering-dogs/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 10:25:10 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/04/16/murdering-dogs/</guid>
		<description><![CDATA[I&#8217;ve been having some problems with the &#8220;Search Assistant&#8221; (the stupid dog thing in Explorer on Windows XP when you use the Find thingy) at work. For some reason recently opening the search sidebar results in Explorer crashing with a Data Execution Prevention error. Disabling the DEP stuff for explorer.exe just results in a regular [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having some problems with the &#8220;Search Assistant&#8221; (the stupid dog thing in Explorer on Windows XP when you use the Find thingy) at work. For some reason recently opening the search sidebar results in Explorer crashing with a Data Execution Prevention error. Disabling the DEP stuff for explorer.exe just results in a regular crash. Alas, to disable the dog thing you need to be able to open the search panel&#8230; or just stick this in your registry.</p>


<div class="wp_syntax"><div class="code"><pre class="reg" style="font-family:monospace;"><span style="color: #000000;">&#91;</span><span style="color: #800000;">HKEY_CURRENT_USER</span>\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState<span style="color: #000000;">&#93;</span>
&nbsp;
<span style="color: #0000FF;">&quot;FullPathAddress&quot;</span><span style="color: #000000;">=</span><span style="color: #0000FF;">dword:00000001</span>
<span style="color: #0000FF;">&quot;Use Search Asst&quot;</span><span style="color: #000000;">=</span><span style="">&quot;no&quot;</span></pre></div></div>


<p>Log off and back on again and the dog has been slaughtered.</p>

<p>Stupid yapping thing.  :fuckoff:</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/04/16/murdering-dogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting localparts in Exchange Recipient Policies</title>
		<link>http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/</link>
		<comments>http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 09:05:41 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Exim and email]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/</guid>
		<description><![CDATA[It&#8217;s taken me too long to find this. (For the uninitiated, Exchange Recipient Policies tell Active Directory how to automatically generate email addresses for your users.) If you want to tell a recipient policy in Exchange 2003 (and presumably 2007) how to generate the localpart other then just username, use these expanos: %s : Surname [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s taken me too long to find this.</p>

<p>(For the uninitiated, Exchange Recipient Policies tell Active Directory how to automatically generate email addresses for your users.)</p>

<p>If you want to tell a recipient policy in Exchange 2003 (and presumably 2007) how to generate the localpart other then just <code>username</code>, use these expanos:</p>

<blockquote>
  <p>%s : Surname (last name)</p>
  
  <p>%g : Given name (first name)</p>
  
  <p>%i : Middle initial</p>
  
  <p>%d : Display name</p>
  
  <p>%m : Exchange 2003 alias</p>
  
  <p>%rxy : Replace all subsequent characters x with character y in username. If x = y, the character will be deleted.</p>
</blockquote>

<p>There are other things you can do like chopping the string to a certain number of characters, see the full article for details.</p>

<p>No longer will I have to manually add <code>first.last@domain.com</code> to every user I create :D</p>

<p><a href="http://support.microsoft.com/Default.aspx?kbid=822447">http://support.microsoft.com/Default.aspx?kbid=822447</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2007/01/29/setting-localparts-in-exchange-recipient-policies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assimilation complete</title>
		<link>http://jamesoff.net/site/2006/11/16/assimilation-complete/</link>
		<comments>http://jamesoff.net/site/2006/11/16/assimilation-complete/#comments</comments>
		<pubDate>Wed, 15 Nov 2006 23:40:32 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[internets]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/11/16/assimilation-complete/</guid>
		<description><![CDATA[I knew this was coming, but seeing it happen makes me a sad panda. http://www.sysinternals.com now redirects to a Microsoft :xbox: TechNet site. While the new site carries all of the stuff sysinternals.com had, and also has some new stuff (hooray!) it&#8217;s sad to see it finally gone :( Luckily, nothing ever really dies on [...]]]></description>
			<content:encoded><![CDATA[<p>I knew this was coming, but seeing it happen makes me a sad panda.</p>

<p>http://www.sysinternals.com now redirects to a Microsoft :xbox: TechNet site. While the new site carries all of the stuff sysinternals.com had, and also has some new stuff (hooray!) it&#8217;s sad to see it finally gone :(</p>

<p>Luckily, nothing ever really <a href="http://web.archive.org/web/20060428003456/http://www.sysinternals.com/">dies on the Internet</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/11/16/assimilation-complete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Access Denied&#8221; when joining a domain</title>
		<link>http://jamesoff.net/site/2006/10/27/access-denied-when-joining-a-domain/</link>
		<comments>http://jamesoff.net/site/2006/10/27/access-denied-when-joining-a-domain/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 09:12:16 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/10/27/access-denied-when-joining-a-domain/</guid>
		<description><![CDATA[While trying to join a machine which had previously been on a Windows Server 2003-hosted domain to a new domain hosted on Windows Server 2003 R2 (not sure if the change in OS is the cause of this issue), I kept getting &#8220;Access Denied&#8221;. In C:\windows\debug\netsetup.log it says: NetUseAdd to \\DC_FQDN\IPC$ returned 5 NetpJoinDomain: status [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to join a machine which had previously been on a Windows Server 2003-hosted domain to a new domain hosted on Windows Server 2003 R2 (not sure if the change in OS is the cause of this issue), I kept getting &#8220;Access Denied&#8221;.</p>

<p>In <code>C:\windows\debug\netsetup.log</code> it says:</p>

<pre><code>NetUseAdd to \\DC_FQDN\IPC$ returned 5
NetpJoinDomain: status of connecting to dc '\\DC_FQDN': 0x5
NetpDoDomainJoin: status: 0x5
</code></pre>

<p>The solution was to fire up <code>regedit</code> and change the value of <code>HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\enablesecuritysignature</code> to 1, and restart.</p>

<p>Edit: Do this <em>after</em> leaving the original domain for a workgroup, because doing that resets it to 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/10/27/access-denied-when-joining-a-domain/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MS Word Reading Layout</title>
		<link>http://jamesoff.net/site/2006/07/05/ms-word-reading-layout/</link>
		<comments>http://jamesoff.net/site/2006/07/05/ms-word-reading-layout/#comments</comments>
		<pubDate>Wed, 05 Jul 2006 09:14:23 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/07/05/ms-word-reading-layout/</guid>
		<description><![CDATA[Why is it that Word 2003 is so keen on Reading Layout? Even if you clear the &#8220;Allow starting in Reading Layout&#8221; checkbox in Options, it ignores you and turns it back on again. Gah(£$$)]]></description>
			<content:encoded><![CDATA[<p>Why is it that Word 2003 is so keen on Reading Layout? Even if you clear the &#8220;Allow starting in Reading Layout&#8221; checkbox in Options, it ignores you and turns it back on again. Gah<em>(£$</em>$)</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/07/05/ms-word-reading-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exchange Offline Address Books</title>
		<link>http://jamesoff.net/site/2006/03/31/exchange-offline-address-books/</link>
		<comments>http://jamesoff.net/site/2006/03/31/exchange-offline-address-books/#comments</comments>
		<pubDate>Fri, 31 Mar 2006 14:50:50 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Spamtrap]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/03/31/exchange-offline-address-books/</guid>
		<description><![CDATA[If your Exchange Offline Address Book isn&#8217;t generating and you get error 9335 in the Event log (&#8220;OALGen encountered error 8004010f while clearing the offline address list public folders under &#8230;&#8221;), try this: http://b.oooom.net/1xo]]></description>
			<content:encoded><![CDATA[<p>If your Exchange Offline Address Book isn&#8217;t generating and you get error 9335 in the Event log (&#8220;OALGen encountered error 8004010f while clearing the offline address list public folders under &#8230;&#8221;), try this:</p>

<p><a href="http://b.oooom.net/1xo">http://b.oooom.net/1xo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/03/31/exchange-offline-address-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7 Tabbed Browsing</title>
		<link>http://jamesoff.net/site/2006/03/02/ie7-tabbed-browsing/</link>
		<comments>http://jamesoff.net/site/2006/03/02/ie7-tabbed-browsing/#comments</comments>
		<pubDate>Thu, 02 Mar 2006 10:34:58 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/03/02/ie7-tabbed-browsing/</guid>
		<description><![CDATA[I&#8217;m trying out the latest beta of IE7 to make sure it works OK with stuff I do for my job, and the tab support in it is infuritating me. In Firefox, I can drag the favicon from the address bar or a link from a page into a blank area of the tab bar, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying out the latest beta of IE7 to make sure it works OK with stuff I do for my job, and the tab support in it is infuritating me.</p>

<p>In Firefox, I can drag the favicon from the address bar or a link from a page into a blank area of the tab bar, and I&#8217;ll get a new tab with my link it.</p>

<p>In IE, that opens in the link in the currently active tab.</p>

<p>OK, so how about if I drop the link over the &#8220;new tab&#8221; button? No, that opens the link in the active tab too.</p>

<p>Alright then, I&#8217;ll create a tab with the new tab button myself, and then I&#8217;ll drop the link into the blank tab.</p>

<p>Wait, no, that doesn&#8217;t do it either. The only way to open a link in a new tab is to Ctrl-click it. All of the other actions for opening a new tab make sense to me from a UI point of view, but just don&#8217;t work.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/03/02/ie7-tabbed-browsing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using dsquery to find inactive users in AD</title>
		<link>http://jamesoff.net/site/2006/02/24/using-dsquery-to-find-inactive-users-in-ad/</link>
		<comments>http://jamesoff.net/site/2006/02/24/using-dsquery-to-find-inactive-users-in-ad/#comments</comments>
		<pubDate>Fri, 24 Feb 2006 10:40:16 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/2006/02/24/using-dsquery-to-find-inactive-users-in-ad/</guid>
		<description><![CDATA[While reading the study guide for 70-290 (Managing a Win2k environment) I was pleased to find you could use dsquery to find users in your AD who had been inactive for a certain amount of time. However, it failed to mention that your AD must be at the Windows Server 2003 functional level for this [...]]]></description>
			<content:encoded><![CDATA[<p>While reading the study guide for 70-290 (Managing a Win2k environment) I was pleased to find you could use <code>dsquery</code> to find users in your AD who had been inactive for a certain amount of time.  However, it failed to mention that your AD must be at the Windows Server 2003 functional level for this to work, else it will complain:</p>

<blockquote>C:\>dsquery user -inactive 4 dsquery failed: The parameter is incorrect.

Windows could not run this query because you are connected to a domain that does not support this query.

type dsquery /? for help.</blockquote>

<p>After raising the functional level from Windows 2000 to Windows Server 2003 it works without complaining, but doesn&#8217;t return any data &#8211; I guess it&#8217;s not even stored until you fix the functional level.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2006/02/24/using-dsquery-to-find-inactive-users-in-ad/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

