<?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 Site</description>
	<lastBuildDate>Sat, 24 Apr 2010 15:27:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 the [...]]]></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>
]]></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>
