<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Managing group membership in Active Directory with PowerShell (Part 2)</title>
	<atom:link href="http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2</link>
	<description>Adam Bell on Deployment, Automation, PowerShell et al</description>
	<lastBuildDate>Thu, 25 Feb 2010 23:14:19 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ryan</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-974</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 17 Feb 2009 19:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-974</guid>
		<description>You could just use the remove syntax for removing a user from the group:

$group.remove(&quot;LDAP://$userDN&quot;)

also Ive been using this in AD 2003 and ive never had to use

$group.SetInfo()</description>
		<content:encoded><![CDATA[<p>You could just use the remove syntax for removing a user from the group:</p>
<p>$group.remove(&#8220;LDAP://$userDN&#8221;)</p>
<p>also Ive been using this in AD 2003 and ive never had to use</p>
<p>$group.SetInfo()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Bell</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-758</link>
		<dc:creator>Adam Bell</dc:creator>
		<pubDate>Thu, 04 Dec 2008 01:05:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-758</guid>
		<description>Fred,

Unfrotunately, not all environments are able to install third party tools. Also the post was written before Quest had released their tools ....

I’m a big fan of the Quest AD CmdLets and they make managing AD activities a lot easier.

There is value in knowing how to do it without these tools though so the crap way still has value. ;)

Think defence environments for example …..

Cheers,
Adam</description>
		<content:encoded><![CDATA[<p>Fred,</p>
<p>Unfrotunately, not all environments are able to install third party tools. Also the post was written before Quest had released their tools &#8230;.</p>
<p>I’m a big fan of the Quest AD CmdLets and they make managing AD activities a lot easier.</p>
<p>There is value in knowing how to do it without these tools though so the crap way still has value. ;)</p>
<p>Think defence environments for example …..</p>
<p>Cheers,<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-743</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Tue, 18 Nov 2008 23:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-743</guid>
		<description>forget this crap... just got get the Quest AD tools for PS they are free.... one line management.

http://www.quest.com/powershell/</description>
		<content:encoded><![CDATA[<p>forget this crap&#8230; just got get the Quest AD tools for PS they are free&#8230;. one line management.</p>
<p><a href="http://www.quest.com/powershell/" rel="nofollow">http://www.quest.com/powershell/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Modifying Group Memberships with Powershell, Part II &#171; Just Another Sysadmin</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-571</link>
		<dc:creator>Modifying Group Memberships with Powershell, Part II &#171; Just Another Sysadmin</dc:creator>
		<pubDate>Sun, 20 Jan 2008 02:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-571</guid>
		<description>[...] membership in Exchange 2007 Managing group membership in Active Directory with PowerShell (Part 1) Managing group membership in Active Directory with PowerShell (Part 2) Powershell and ActiveDirectory - Modify-Group-Membership PowerShell script to list user group [...]</description>
		<content:encoded><![CDATA[<p>[...] membership in Exchange 2007 Managing group membership in Active Directory with PowerShell (Part 1) Managing group membership in Active Directory with PowerShell (Part 2) Powershell and ActiveDirectory &#8211; Modify-Group-Membership PowerShell script to list user group [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter {faa780ce-0f0a-4c28-81d2-3667b71287fd}</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-32</link>
		<dc:creator>Peter {faa780ce-0f0a-4c28-81d2-3667b71287fd}</dc:creator>
		<pubDate>Wed, 28 Feb 2007 22:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-32</guid>
		<description>Thanks, as with everything AD-related, I understand that There Is Something Up with my domain, and I&#039;ll try this on a VM to see what happens.</description>
		<content:encoded><![CDATA[<p>Thanks, as with everything AD-related, I understand that There Is Something Up with my domain, and I&#8217;ll try this on a VM to see what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdamBell</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-31</link>
		<dc:creator>AdamBell</dc:creator>
		<pubDate>Tue, 27 Feb 2007 16:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-31</guid>
		<description>Hi Peter,

I agree on the rewriting of the group membership. I wouldn&#039;t do this in a large prod environment for the same fear! You should be able to perform this action using the .Net framework, but I have just been transfering old VBScript code for these examples.

Interesting that you are experiencing issues with the sample code. I tested all of my examples in a 2003 AD hosted in VMware. Admittedly theres no scale here - replication etc but the code worked fine.

Have you checked te code for typo&#039;s? If you&#039;re still having problems, email me offline and I&#039;ll send you the code function to test.

HTH</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I agree on the rewriting of the group membership. I wouldn&#8217;t do this in a large prod environment for the same fear! You should be able to perform this action using the .Net framework, but I have just been transfering old VBScript code for these examples.</p>
<p>Interesting that you are experiencing issues with the sample code. I tested all of my examples in a 2003 AD hosted in VMware. Admittedly theres no scale here &#8211; replication etc but the code worked fine.</p>
<p>Have you checked te code for typo&#8217;s? If you&#8217;re still having problems, email me offline and I&#8217;ll send you the code function to test.</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter {faa780ce-0f0a-4c28-81d2-3667b71287fd}</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-30</link>
		<dc:creator>Peter {faa780ce-0f0a-4c28-81d2-3667b71287fd}</dc:creator>
		<pubDate>Mon, 26 Feb 2007 23:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-30</guid>
		<description>Also I tried implementing your &quot;old way sample&quot; just now, and it looks like the simple $group.add($ldapstring) syntax is busted. I&#039;ve also tried just now using $group.psbase.invoke(&quot;add&quot;,$ldapstring) and I&#039;m out of luck there too.

Anyway, FYI</description>
		<content:encoded><![CDATA[<p>Also I tried implementing your &#8220;old way sample&#8221; just now, and it looks like the simple $group.add($ldapstring) syntax is busted. I&#8217;ve also tried just now using $group.psbase.invoke(&#8220;add&#8221;,$ldapstring) and I&#8217;m out of luck there too.</p>
<p>Anyway, FYI</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter {faa780ce-0f0a-4c28-81d2-3667b71287fd}</title>
		<link>http://www.leadfollowmove.com/archives/powershell/managing-group-membership-in-active-directory-with-powershell-part-2/comment-page-1#comment-29</link>
		<dc:creator>Peter {faa780ce-0f0a-4c28-81d2-3667b71287fd}</dc:creator>
		<pubDate>Mon, 26 Feb 2007 23:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/?p=48#comment-29</guid>
		<description>My only question about this is: is the PowerShell way dangerous? With the old way, you know you&#039;re JUST adding a new user. With the new way, it looks like you&#039;re rebuilding the membership collection entirely and saying &quot;make this happen&quot;. Potentially this new way removes everyone from the group, then re-adds them all (plus one).

Maybe it doesn&#039;t, but maybe it does. I&#039;m too scared to find out (especially in production on an &quot;almost everyone&quot;-type group with over 1000 members).

Anyway, I agree PowerShell is quite powerful.</description>
		<content:encoded><![CDATA[<p>My only question about this is: is the PowerShell way dangerous? With the old way, you know you&#8217;re JUST adding a new user. With the new way, it looks like you&#8217;re rebuilding the membership collection entirely and saying &#8220;make this happen&#8221;. Potentially this new way removes everyone from the group, then re-adds them all (plus one).</p>
<p>Maybe it doesn&#8217;t, but maybe it does. I&#8217;m too scared to find out (especially in production on an &#8220;almost everyone&#8221;-type group with over 1000 members).</p>
<p>Anyway, I agree PowerShell is quite powerful.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
