<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx</link><description>Hey, Scripting Guy! How can I map drives in a logon script based on a security group each user belong to? -- RO 
 Hey, RO. Considering the fact that this question has been asked by approximately 3,755,392 of our readers - oops, there’s another one; make</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx#3486964</link><pubDate>Thu, 15 Mar 2012 19:57:13 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3486964</guid><dc:creator>Cadre</dc:creator><description>&lt;p&gt;What about persistent drive letters?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3486964" width="1" height="1"&gt;</description></item><item><title>re: How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx#3425075</link><pubDate>Fri, 29 Apr 2011 01:48:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3425075</guid><dc:creator>Binh Tang</dc:creator><description>&lt;p&gt;Thanks for this.&lt;/p&gt;
&lt;p&gt;Do you know how to do this using Powersell instead? &lt;/p&gt;
&lt;p&gt;Sorry, I&amp;#39;m having great difficulties finding the solution and saw your post and wondered if you have converted this to Powershell instead?&lt;/p&gt;
&lt;p&gt;Many thanks,&lt;/p&gt;
&lt;p&gt;Binh&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3425075" width="1" height="1"&gt;</description></item><item><title>re: How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx#3353886</link><pubDate>Mon, 06 Sep 2010 21:19:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3353886</guid><dc:creator>BT</dc:creator><description>&lt;p&gt;Hi ScriptingGuy,&lt;/p&gt;
&lt;p&gt;I am trying to map drives based on nested groups, and as you say this doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Did you every get round to blogging this? if so what&amp;#39;s the link - i can&amp;#39;t find anything anywhere!!!&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3353886" width="1" height="1"&gt;</description></item><item><title>re: How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx#3347342</link><pubDate>Wed, 28 Jul 2010 20:33:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3347342</guid><dc:creator>RD</dc:creator><description>&lt;p&gt;Is there a way to add a group to multiple network drives? For example, I entered -&lt;/p&gt;
&lt;p&gt;Case &amp;quot;test&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; objNetwork.MapNetworkDrive &amp;quot;S:&amp;quot;, &amp;quot;\\server\xxx&amp;quot;&lt;/p&gt;
&lt;p&gt;Case &amp;quot;test&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; objNetwork.MapNetworkDrive &amp;quot;F:&amp;quot;, &amp;quot;\\server\yyy&amp;quot;&lt;/p&gt;
&lt;p&gt;Only the mapping to the S: drive worked. I created a test 2 group for the second mapping and it worked. Is there any way around this?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3347342" width="1" height="1"&gt;</description></item><item><title>re: How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx#3335480</link><pubDate>Thu, 03 Jun 2010 09:38:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3335480</guid><dc:creator>Alexey</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/ru-ru/library/cc758918%28WS.10%29.aspx"&gt;technet.microsoft.com/.../cc758918%28WS.10%29.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3335480" width="1" height="1"&gt;</description></item><item><title>re: How Can I Map Drives Based on Membership in a Group?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/12/10/how-can-i-map-drives-based-on-membership-in-a-group.aspx#3318894</link><pubDate>Sat, 13 Mar 2010 17:03:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3318894</guid><dc:creator>Finy</dc:creator><description>&lt;p&gt;Hey Guy,&lt;/p&gt;
&lt;p&gt;Something I found:&lt;/p&gt;
&lt;p&gt;By default, a new created domain user only belongs to &amp;quot;domain users&amp;quot; group(aslo as Primary group)&lt;/p&gt;
&lt;p&gt;Later, if the user was added into another group(only one), when we run the script, we will fail to map the drive.&lt;/p&gt;
&lt;p&gt;This is because if user belongs to only one group(except Primary group), the value of &amp;quot;objUser.MemberOf&amp;quot; will be think as string(not collection), so, scripts within &amp;quot;For Each strGroup in objUser.MemberOf&amp;quot; won't run.&lt;/p&gt;
&lt;p&gt;Is it true?&lt;/p&gt;
&lt;p&gt;Refer: &amp;lt;&lt;a rel="nofollow" target="_new" href="http://www.rlmueller.net/MemberOf.htm&amp;gt;"&gt;http://www.rlmueller.net/MemberOf.htm&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3318894" width="1" height="1"&gt;</description></item></channel></rss>