<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Active Directory Shadow Groups: How To Automatically Add OU Users To Security Groups	</title>
	<atom:link href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/feed/" rel="self" type="application/rss+xml" />
	<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/</link>
	<description>Chew the Fat</description>
	<lastBuildDate>Thu, 02 May 2019 17:02:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Need Help with &#34;Shadow Groups&#34; in AD - How to Code .NET		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-277</link>

		<dc:creator><![CDATA[Need Help with &#34;Shadow Groups&#34; in AD - How to Code .NET]]></dc:creator>
		<pubDate>Thu, 02 May 2019 17:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-277</guid>

					<description><![CDATA[[&#8230;] So, following along this post here &#8211; https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/ [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] So, following along this post here &#8211; <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/" rel="ugc">https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/</a> [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: _n345		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-269</link>

		<dc:creator><![CDATA[_n345]]></dc:creator>
		<pubDate>Thu, 12 Apr 2018 13:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-269</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-262&quot;&gt;Bc Hale&lt;/a&gt;.

thank you and correct!  i found this bug myself and revisited this to update.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-262">Bc Hale</a>.</p>
<p>thank you and correct!  i found this bug myself and revisited this to update.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bc Hale		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-262</link>

		<dc:creator><![CDATA[Bc Hale]]></dc:creator>
		<pubDate>Thu, 14 Dec 2017 22:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-262</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-257&quot;&gt;_n345&lt;/a&gt;.

Couldn&#039;t get the (Get-ADGroup -Identity $ShadowGroup).Members   to work,
but this worked for me.
(Get-ADGroup -Identity $ShadowGroup -Properties Member).Member &#124; Get-ADUser &#124; ...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-257">_n345</a>.</p>
<p>Couldn&#8217;t get the (Get-ADGroup -Identity $ShadowGroup).Members   to work,<br />
but this worked for me.<br />
(Get-ADGroup -Identity $ShadowGroup -Properties Member).Member | Get-ADUser | &#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: AutumninVT		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-260</link>

		<dc:creator><![CDATA[AutumninVT]]></dc:creator>
		<pubDate>Tue, 07 Nov 2017 13:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-260</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-154&quot;&gt;myconnects&lt;/a&gt;.

I realize this is 3 years old but I had this same issue. For some reason when we copy+paste, some dashes &quot;-&quot; end up as  a weird character combination: â€“  . I can even see it in the code you pasted up above. I used the Powershell ISE to find and replace the characters. For some reason, they look fine in Notepad++]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-154">myconnects</a>.</p>
<p>I realize this is 3 years old but I had this same issue. For some reason when we copy+paste, some dashes &#8220;-&#8221; end up as  a weird character combination: â€“  . I can even see it in the code you pasted up above. I used the Powershell ISE to find and replace the characters. For some reason, they look fine in Notepad++</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: _n345		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-257</link>

		<dc:creator><![CDATA[_n345]]></dc:creator>
		<pubDate>Thu, 21 Sep 2017 18:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-257</guid>

					<description><![CDATA[back again.  i wanted to let you and your readers know that Get-ADGroupMember has a 5000 object limit which we hit and the script errored.  There is an easy workaround with: 

(Get-ADGroup -Identity $ShadowGroup).Members &#124; Get-ADUser &#124; Where-Object {$_.distinguishedName –NotMatch $OU} &#124; ...

thanks again, best solution thus far.  i&#039;ve expanded a bit and added email support: https://gist.github.com/meoso/301f2e94306dcf2d3714c26ca5518932]]></description>
			<content:encoded><![CDATA[<p>back again.  i wanted to let you and your readers know that Get-ADGroupMember has a 5000 object limit which we hit and the script errored.  There is an easy workaround with: </p>
<p>(Get-ADGroup -Identity $ShadowGroup).Members | Get-ADUser | Where-Object {$_.distinguishedName –NotMatch $OU} | &#8230;</p>
<p>thanks again, best solution thus far.  i&#8217;ve expanded a bit and added email support: <a href="https://gist.github.com/meoso/301f2e94306dcf2d3714c26ca5518932" rel="nofollow ugc">https://gist.github.com/meoso/301f2e94306dcf2d3714c26ca5518932</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: _n345		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-246</link>

		<dc:creator><![CDATA[_n345]]></dc:creator>
		<pubDate>Thu, 13 Jul 2017 19:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-246</guid>

					<description><![CDATA[Thank you for this CONCISE script.]]></description>
			<content:encoded><![CDATA[<p>Thank you for this CONCISE script.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David K. Sutton		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-240</link>

		<dc:creator><![CDATA[David K. Sutton]]></dc:creator>
		<pubDate>Fri, 03 Mar 2017 01:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-240</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-233&quot;&gt;Orlando&lt;/a&gt;.

http://stackoverflow.com/questions/1215260/how-to-redirect-the-output-of-a-powershell-to-a-file-during-its-execution]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-233">Orlando</a>.</p>
<p><a href="http://stackoverflow.com/questions/1215260/how-to-redirect-the-output-of-a-powershell-to-a-file-during-its-execution" rel="nofollow ugc">http://stackoverflow.com/questions/1215260/how-to-redirect-the-output-of-a-powershell-to-a-file-during-its-execution</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David K. Sutton		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-239</link>

		<dc:creator><![CDATA[David K. Sutton]]></dc:creator>
		<pubDate>Fri, 03 Mar 2017 01:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-239</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-235&quot;&gt;Shmuel Chayempour&lt;/a&gt;.

Thanks for the tips!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-235">Shmuel Chayempour</a>.</p>
<p>Thanks for the tips!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David K. Sutton		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-238</link>

		<dc:creator><![CDATA[David K. Sutton]]></dc:creator>
		<pubDate>Fri, 03 Mar 2017 01:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-238</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-237&quot;&gt;Armand Pansegrauw&lt;/a&gt;.

Sorry to hear about your AD issues. The script only acts on one security group at a time. It will remove users from that one group if they are not in the OU specified. And it will add users to that one group if they are in the OU specified. It would NOT remove users from any other group. Good luck!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-237">Armand Pansegrauw</a>.</p>
<p>Sorry to hear about your AD issues. The script only acts on one security group at a time. It will remove users from that one group if they are not in the OU specified. And it will add users to that one group if they are in the OU specified. It would NOT remove users from any other group. Good luck!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Armand Pansegrauw		</title>
		<link>https://ravingroo.com/458/active-directory-shadow-group-automatically-add-ou-users-membership/#comment-237</link>

		<dc:creator><![CDATA[Armand Pansegrauw]]></dc:creator>
		<pubDate>Mon, 27 Feb 2017 07:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://ravingroo.com/?p=458#comment-237</guid>

					<description><![CDATA[Hi Guys.

I made a big mess with our AD.

I&#039;m a noob with scripting, and I dont know any script junky to ask for help.

I&#039;m not sure if the script above was actually intended to do this, but for some reason, I&#039;ve ran the script, and then security groups were all removed from their previous users, and only added to the particular group. Is that what it was supposed to do?

Our AD is a mess, and I&#039;m slowly but surely trying to redo it properly.

Also, if this is the intention of the script, would you please be so kind as to send me the script that only adds the security groups to the OU, and not remove them from the other users account in other groups.

Regards
Armand]]></description>
			<content:encoded><![CDATA[<p>Hi Guys.</p>
<p>I made a big mess with our AD.</p>
<p>I&#8217;m a noob with scripting, and I dont know any script junky to ask for help.</p>
<p>I&#8217;m not sure if the script above was actually intended to do this, but for some reason, I&#8217;ve ran the script, and then security groups were all removed from their previous users, and only added to the particular group. Is that what it was supposed to do?</p>
<p>Our AD is a mess, and I&#8217;m slowly but surely trying to redo it properly.</p>
<p>Also, if this is the intention of the script, would you please be so kind as to send me the script that only adds the security groups to the OU, and not remove them from the other users account in other groups.</p>
<p>Regards<br />
Armand</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
