<?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>phirebird &#187; my documents</title>
	<atom:link href="http://www.phirebird.net/tag/my-documents/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phirebird.net</link>
	<description>Yet Another IT &#039;How-To&#039; Site</description>
	<lastBuildDate>Wed, 29 Dec 2010 11:37:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Redirecting My Documents shell folder from a login script / commandline</title>
		<link>http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/</link>
		<comments>http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 23:04:22 +0000</pubDate>
		<dc:creator>shands</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[login script]]></category>
		<category><![CDATA[my documents]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.phirebird.net/?p=87</guid>
		<description><![CDATA[I&#8217;ve always been a firm believer in Group Policy redirecting users&#8217; My Documents folders for me &#8211; but there&#8217;s nothing like the reassurance of a good old batch file carrying this operation out for you. So how do you do it? Well, the location of My Documents is stored in the registry (which is read by [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been a firm believer in Group Policy redirecting users&#8217; My Documents folders for me &#8211; but there&#8217;s nothing like the reassurance of a good old batch file carrying this operation out for you.</p>
<p>So how do you do it? Well, the location of My Documents is stored in the registry (which is read by the explorer process when it&#8217;s spawned) and is located here:</p>
<blockquote><p>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal</p></blockquote>
<p>As you would expect, editing this one value redirects My Docs. So, as part of your network login script, you can achive this automatically by adding in:</p>
<blockquote><p>reg add &#8220;HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders&#8221; /v Personal /t REG_EXPAND_SZ /d \\server\%USERNAME% /f</p></blockquote>
<p>&#8230;to redirect to your server using the username of the currently logged on user as the share name.</p>
<p>&nbsp;</p>
<p>Did you find this hint useful? Are you looking to learn more? Well, here&#8217;s a few books that I&#8217;ve found useful &#8211; have a goosie!</p>
<table width="100%">
<tr>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0470287209?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/51fHA8c9zXL._SL100.jpg" border="0"><br />
Active Directory for Dummies</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/1592000851?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/517yuSCbi5L._SL100.jpg" border="0"><br />
Microsoft Windows Shell Script Programming</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/1578701392?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/41y8XN69oTL._SL100.jpg" border="0"><br />
Microsoft Windows Script Host</a></td>
<td>&nbsp;</td>
<td valign="top" align="center"><a href="http://www.amazon.co.uk/gp/product/0782141307?ie=UTF8&#038;tag=beabi-21"><img src="http://ecx.images-amazon.com/images/I/518YC3V0AFL._SL100.jpg" border="0"><br />
Mastering Windows Server 2003</a></td>
</tr>
</table>
<p>&nbsp;<br />
<br />&nbsp;</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;n=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;title=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;title=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;t=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;title=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;title=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Redirecting+My+Documents+shell+folder+from+a+login+script+%2F+commandline+-+http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.phirebird.net/2009/07/redirecting-my-documents-shell-folder-from-a-login-script-commandline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

