<?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#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Recursively Listing Security Group Members with PowerShell, Version 2</title>
	<atom:link href="http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/</link>
	<description>Living in the I.T. Operating Quadrant. Useful articles on real world solutions involving Monitoring (System Center Operations Manager), Virtualization, Reporting, Scripting (PowerShell), and much more.</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:50:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Leo</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-1210</link>
		<dc:creator><![CDATA[Leo]]></dc:creator>
		<pubDate>Thu, 24 Feb 2011 17:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-1210</guid>
		<description><![CDATA[I&#039;m just now learning how to script because of a forced need at work. 

I&#039;m having to perform audits on group membership for active directory groups. I have yet to find a script that works for me to do this but from what i can tell, this is the closest one yet.

I am however, getting the exact same error as mentioned above. I also tried the link that was posted without any success. Has anyone come up with a solution to this yet?

Thanks.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m just now learning how to script because of a forced need at work. </p>
<p>I&#8217;m having to perform audits on group membership for active directory groups. I have yet to find a script that works for me to do this but from what i can tell, this is the closest one yet.</p>
<p>I am however, getting the exact same error as mentioned above. I also tried the link that was posted without any success. Has anyone come up with a solution to this yet?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-1209</link>
		<dc:creator><![CDATA[Leo]]></dc:creator>
		<pubDate>Thu, 24 Feb 2011 17:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-1209</guid>
		<description><![CDATA[I&#039;m new to scripting. For my job, I sometimes have to do audits on Domain Group memberships and have been searching for a script that would make this easier for me.

I&#039;m getting the exact same error as mentioned above. Has anyone firgured this out yet?

I&#039;m restricted to PowerShell v1. Could this be part of the cause?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m new to scripting. For my job, I sometimes have to do audits on Domain Group memberships and have been searching for a script that would make this easier for me.</p>
<p>I&#8217;m getting the exact same error as mentioned above. Has anyone firgured this out yet?</p>
<p>I&#8217;m restricted to PowerShell v1. Could this be part of the cause?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck Lathrope</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-396</link>
		<dc:creator><![CDATA[Chuck Lathrope]]></dc:creator>
		<pubDate>Thu, 07 Jan 2010 18:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-396</guid>
		<description><![CDATA[Check out this ScriptingGuys link: http://gallery.technet.microsoft.com/ScriptCenter/zh-TW/1228cdfa-9c04-4bc7-a016-11b492c704d2]]></description>
		<content:encoded><![CDATA[<p>Check out this ScriptingGuys link: <a href="http://gallery.technet.microsoft.com/ScriptCenter/zh-TW/1228cdfa-9c04-4bc7-a016-11b492c704d2" rel="nofollow">http://gallery.technet.microsoft.com/ScriptCenter/zh-TW/1228cdfa-9c04-4bc7-a016-11b492c704d2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Script_newb</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-271</link>
		<dc:creator><![CDATA[Script_newb]]></dc:creator>
		<pubDate>Mon, 26 Oct 2009 22:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-271</guid>
		<description><![CDATA[Hey Kris,

Any luck on figuring out the enumeration issue.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hey Kris,</p>
<p>Any luck on figuring out the enumeration issue.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Script_newb</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-257</link>
		<dc:creator><![CDATA[Script_newb]]></dc:creator>
		<pubDate>Tue, 20 Oct 2009 22:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-257</guid>
		<description><![CDATA[It correctly identifies the object as a user, then attempts to mistakenly recurse the user object as though it were a group.]]></description>
		<content:encoded><![CDATA[<p>It correctly identifies the object as a user, then attempts to mistakenly recurse the user object as though it were a group.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristopher Bash</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-254</link>
		<dc:creator><![CDATA[Kristopher Bash]]></dc:creator>
		<pubDate>Mon, 19 Oct 2009 23:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-254</guid>
		<description><![CDATA[This is interesting.  When it lists the members of the parent group does it list:
Group Domain\first.last
or does it list
User Domain\first.last

In short, can you tell if the script is mistaking users for groups when it enumerates them as members, or is it mistakingly trying to enumerate an object that it initially listed as a user?   If that makes sense.  I tested the script in quite a number of scenarios, but obviously haven&#039;t seen this.  I appreciate you bringing this to my attention, and I&#039;m sure the issue is easily fixable, once we figure out what the issue is exactly.]]></description>
		<content:encoded><![CDATA[<p>This is interesting.  When it lists the members of the parent group does it list:<br />
Group Domain\first.last<br />
or does it list<br />
User Domain\first.last</p>
<p>In short, can you tell if the script is mistaking users for groups when it enumerates them as members, or is it mistakingly trying to enumerate an object that it initially listed as a user?   If that makes sense.  I tested the script in quite a number of scenarios, but obviously haven&#8217;t seen this.  I appreciate you bringing this to my attention, and I&#8217;m sure the issue is easily fixable, once we figure out what the issue is exactly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Script_newb</title>
		<link>http://operatingquadrant.com/2009/10/04/recursively-listing-security-group-members-with-powershell-version-2/#comment-253</link>
		<dc:creator><![CDATA[Script_newb]]></dc:creator>
		<pubDate>Mon, 19 Oct 2009 17:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://operatingquadrant.com/?p=278#comment-253</guid>
		<description><![CDATA[Hey Kris.

Thanks for the updated script. It now correctly enumerates groups in AD.

I have run into another small issue with the script.

When I run the script on certain groups, using 3 levels or more of recursion I get this error. ( I have changed the domain\user info for security reasons.)

Members of the Group: OMAIN\first.last
-----------------------------------------------
Exception calling &quot;Invoke&quot; with &quot;2&quot; argument(s): &quot;The network path was not found.
&quot;
At C:\listusers-1.ps1:64 char:36
+         $Members = @($Group.psbase.Invoke &lt;&lt;&lt;&lt; (&quot;Members&quot;))
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Essentially what happens is that in one of the nested groups, the script will run against the user accounts in the group, it parses the domain\username but drops the first letter of the domain name,  reading them as though they were groups and try to enumerate the user account. The above error is the result. The script will try all members of one group and then move on per normal.

* I removed the &#039;D&#039; intentionally from the &#039;DOMAIN&#039; to show you what the script does as it parses the name.

Any ideas are welcome.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hey Kris.</p>
<p>Thanks for the updated script. It now correctly enumerates groups in AD.</p>
<p>I have run into another small issue with the script.</p>
<p>When I run the script on certain groups, using 3 levels or more of recursion I get this error. ( I have changed the domain\user info for security reasons.)</p>
<p>Members of the Group: OMAIN\first.last<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Exception calling &#8220;Invoke&#8221; with &#8220;2&#8243; argument(s): &#8220;The network path was not found.<br />
&#8221;<br />
At C:\listusers-1.ps1:64 char:36<br />
+         $Members = @($Group.psbase.Invoke &lt;&lt;&lt;&lt; (&quot;Members&quot;))<br />
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException<br />
    + FullyQualifiedErrorId : DotNetMethodException</p>
<p>Essentially what happens is that in one of the nested groups, the script will run against the user accounts in the group, it parses the domain\username but drops the first letter of the domain name,  reading them as though they were groups and try to enumerate the user account. The above error is the result. The script will try all members of one group and then move on per normal.</p>
<p>* I removed the &#039;D&#039; intentionally from the &#039;DOMAIN&#039; to show you what the script does as it parses the name.</p>
<p>Any ideas are welcome.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

