<?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: howto://document Active Directory-group memberships</title> <atom:link href="http://retrohack.com/how-to-document-active-directory-group-memberships/feed/" rel="self" type="application/rss+xml" /><link>http://retrohack.com/how-to-document-active-directory-group-memberships/</link> <description>lest the tubes become overfull</description> <lastBuildDate>Wed, 08 Feb 2012 15:03:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>By: Mike</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-2819</link> <dc:creator>Mike</dc:creator> <pubDate>Wed, 01 Feb 2012 19:04:48 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-2819</guid> <description>Adding the %%I after dsget group worked for me in a batch file. I&#039;m running windows 7 64 bit.</description> <content:encoded><![CDATA[<p>Adding the %%I after dsget group worked for me in a batch file. I&#8217;m running windows 7 64 bit.</p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-2746</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Wed, 11 Jan 2012 19:13:16 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-2746</guid> <description>Excellent, glad it helped you out and thanks for letting me know!</description> <content:encoded><![CDATA[<p>Excellent, glad it helped you out and thanks for letting me know!</p> ]]></content:encoded> </item> <item><title>By: Will</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-2745</link> <dc:creator>Will</dc:creator> <pubDate>Wed, 11 Jan 2012 18:57:59 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-2745</guid> <description>Hey Ed, thanks for this article, it worked perfectly.</description> <content:encoded><![CDATA[<p>Hey Ed, thanks for this article, it worked perfectly.</p> ]]></content:encoded> </item> <item><title>By: Michele</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-2414</link> <dc:creator>Michele</dc:creator> <pubDate>Fri, 04 Nov 2011 16:28:22 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-2414</guid> <description>Hi, thank you for your response.
That not works for me :(</description> <content:encoded><![CDATA[<p>Hi, thank you for your response.<br
/> That not works for me <img
src='http://retrohack.com/_retroh_wp_root/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-2413</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Fri, 04 Nov 2011 16:22:20 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-2413</guid> <description>Hi Michele,
Sorry about that; it might be an issue with the version of dsget you have installed, since the original commands worked well for me, but in trying to reproduce your error with a newer PC, I get the same results as you.
I have updated the post above to include the group name after dsget, like this.
&lt;code&gt;dsget group %%I&lt;/code&gt;
Try adding the %%I after the dsget group and see if that helps.
Strange,
Ed</description> <content:encoded><![CDATA[<p>Hi Michele,<br
/> Sorry about that; it might be an issue with the version of dsget you have installed, since the original commands worked well for me, but in trying to reproduce your error with a newer PC, I get the same results as you.<br
/> I have updated the post above to include the group name after dsget, like this.<br
/> <code>dsget group %%I</code><br
/> Try adding the %%I after the dsget group and see if that helps.<br
/> Strange,<br
/> Ed</p> ]]></content:encoded> </item> <item><title>By: Michele</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-2412</link> <dc:creator>Michele</dc:creator> <pubDate>Fri, 04 Nov 2011 15:58:47 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-2412</guid> <description>I&#039;m getting the same error as &lt;strong&gt;JA&lt;/strong&gt;:
dsget failed:’Target object for this command’ is missing.My group.txt file is like this:
&lt;code&gt;
&quot;CN=FBL-DIREZIONE,OU=GROUP,OU=FBL,DC=ABG,DC=INT&quot;
&quot;CN=FBL-GRP_ACQ_FBL-FBV-MYV_WRITE,OU=GROUP,OU=FBL,DC=ABG,DC=INT&quot;
&lt;/code&gt;My output (from dos prompt) begin like this and follows until the end of the group.txt file:
&lt;code&gt;
C:\&gt;echo &quot;CN=FBL-DIREZIONE,OU=GROUP,OU=FBL,DC=ABG,DC=INT&quot;   1&gt;&gt;out.txt  &amp;&amp; dsque
ry group -name &quot;CN=FBL-DIREZIONE,OU=GROUP,OU=FBL,DC=ABG,DC=INT&quot;   &#124; dsget group
-members -expand  1&gt;&gt;outt.txt
dsget failed:`Target object for this command&#039; is missing.
type dsget /? for help.
C:\&gt;echo &quot;CN=FBL-GRP_ACQ_FBL-FBV-MYV_WRITE,OU=GROUP,OU=FBL,DC=ABG,DC=INT&quot;   1&gt;&gt;o
ut.txt  &amp;&amp; dsquery group -name &quot;CN=FBL-GRP_ACQ_FBL-FBV-MYV_WRITE,OU=GROUP,OU=FBL
,DC=ABG,DC=INT&quot;   &#124; dsget group -members -expand  1&gt;&gt;outt.txt
dsget failed:`Target object for this command&#039; is missing.
type dsget /? for help.
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>I&#8217;m getting the same error as <strong>JA</strong>:<br
/> dsget failed:’Target object for this command’ is missing.</p><p>My group.txt file is like this:<br
/> <code><br
/> "CN=FBL-DIREZIONE,OU=GROUP,OU=FBL,DC=ABG,DC=INT"<br
/> "CN=FBL-GRP_ACQ_FBL-FBV-MYV_WRITE,OU=GROUP,OU=FBL,DC=ABG,DC=INT"<br
/> </code></p><p>My output (from dos prompt) begin like this and follows until the end of the group.txt file:<br
/> <code><br
/> C:\&gt;echo "CN=FBL-DIREZIONE,OU=GROUP,OU=FBL,DC=ABG,DC=INT"   1&gt;&gt;out.txt  &amp;&amp; dsque<br
/> ry group -name "CN=FBL-DIREZIONE,OU=GROUP,OU=FBL,DC=ABG,DC=INT"   | dsget group<br
/> -members -expand  1&gt;&gt;outt.txt<br
/> dsget failed:`Target object for this command' is missing.<br
/> type dsget /? for help.<br
/> C:\&gt;echo "CN=FBL-GRP_ACQ_FBL-FBV-MYV_WRITE,OU=GROUP,OU=FBL,DC=ABG,DC=INT"   1&gt;&gt;o<br
/> ut.txt  &amp;&amp; dsquery group -name "CN=FBL-GRP_ACQ_FBL-FBV-MYV_WRITE,OU=GROUP,OU=FBL<br
/> ,DC=ABG,DC=INT"   | dsget group -members -expand  1&gt;&gt;outt.txt<br
/> dsget failed:`Target object for this command' is missing.<br
/> type dsget /? for help.<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-1999</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Mon, 22 Aug 2011 20:38:46 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-1999</guid> <description>I don&#039;t think so, or at least, I couldn&#039;t figure out how, that&#039;s why I went to the CLI.
Ed</description> <content:encoded><![CDATA[<p>I don&#8217;t think so, or at least, I couldn&#8217;t figure out how, that&#8217;s why I went to the CLI.<br
/> Ed</p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-1998</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Mon, 22 Aug 2011 20:37:51 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-1998</guid> <description>You&#039;re welcome, glad it helped.
Ed</description> <content:encoded><![CDATA[<p>You&#8217;re welcome, glad it helped.<br
/> Ed</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-1996</link> <dc:creator>David</dc:creator> <pubDate>Sat, 20 Aug 2011 05:58:08 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-1996</guid> <description>Using saved queries in ADUC, can you make the export recursive?  I am currently using memberOf=&quot;groupDN&quot;, but there are about 15 groups that are members of that group, how can I export their members to the same list?</description> <content:encoded><![CDATA[<p>Using saved queries in ADUC, can you make the export recursive?  I am currently using memberOf=&#8221;groupDN&#8221;, but there are about 15 groups that are members of that group, how can I export their members to the same list?</p> ]]></content:encoded> </item> <item><title>By: Brandon</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-1995</link> <dc:creator>Brandon</dc:creator> <pubDate>Sat, 20 Aug 2011 02:15:41 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-1995</guid> <description>Thank You sir.  I know this post is old but this info really came in handy.  I am using the code that outputs the members into files that are named after the group.  The original script worked too but from what I could see it didn&#039;t label each section with the group name.  That&#039;s an easy mod I am sure.Thank You!</description> <content:encoded><![CDATA[<p>Thank You sir.  I know this post is old but this info really came in handy.  I am using the code that outputs the members into files that are named after the group.  The original script worked too but from what I could see it didn&#8217;t label each section with the group name.  That&#8217;s an easy mod I am sure.</p><p>Thank You!</p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-1652</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Thu, 24 Mar 2011 01:01:41 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-1652</guid> <description>Glad you got some use from it.
Ed</description> <content:encoded><![CDATA[<p>Glad you got some use from it.<br
/> Ed</p> ]]></content:encoded> </item> <item><title>By: me</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-1651</link> <dc:creator>me</dc:creator> <pubDate>Thu, 24 Mar 2011 00:41:40 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-1651</guid> <description>ran it command line and it work fine - thanks. Wasnt what I was looking for but pretty cool</description> <content:encoded><![CDATA[<p>ran it command line and it work fine &#8211; thanks. Wasnt what I was looking for but pretty cool</p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-806</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Thu, 29 Jul 2010 15:00:38 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-806</guid> <description>Anne,
I&#039;m sorry, I dropped the ball on this one...it completely slipped my mind. Try this in a cmd file, or use a single % each time to do it at a cmd prompt.
&lt;code&gt;for /f &quot;tokens=* delims=;&quot; %%I in (groups.txt) do echo %%I &gt;&gt; out.txt &amp;&amp; dsquery group -name %%I &#124; dsget group -members -expand &gt;&gt; %%I.txt&lt;/code&gt;
That generated one text file for each group in groups.txt, named &lt;em&gt;groupname&lt;/em&gt;.txt.
HTH
Ed</description> <content:encoded><![CDATA[<p>Anne,<br
/> I&#8217;m sorry, I dropped the ball on this one&#8230;it completely slipped my mind. Try this in a cmd file, or use a single % each time to do it at a cmd prompt.<br
/> <code>for /f "tokens=* delims=;" %%I in (groups.txt) do echo %%I &gt;&gt; out.txt &amp;&amp; dsquery group -name %%I | dsget group -members -expand &gt;&gt; %%I.txt</code><br
/> That generated one text file for each group in groups.txt, named <em>groupname</em>.txt.<br
/> HTH<br
/> Ed</p> ]]></content:encoded> </item> <item><title>By: Ed Fisher</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-787</link> <dc:creator>Ed Fisher</dc:creator> <pubDate>Mon, 26 Jul 2010 15:24:08 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-787</guid> <description>JA,
I&#039;m not sure, but there may be either a problem with copying/pasting, or something else too subtle to pick up on. I tried to copy/paste from your comment and it borked miserably with smart quotes, hypens, etc. so I just retyped it all by hand, and put some spaces in  that you did not. Oh, and I put an S on the end of the group file by habit and just called my output file out.txt...that is not what is causing problems for you. My command in a batch file (which works) looks like this...
&lt;code&gt;for /f &quot;tokens=* delims=;&quot; %%I in (groups.txt) do echo %%I &gt;&gt; out.txt &amp;&amp; dsquery group -name %%I &#124; dsget group -members -expand &gt;&gt; out.txt&lt;/code&gt;
Try copying the above, and if that does not work, try typing it in long hand to make sure no character glitches are killing you.
Let me know if that works any better for you,
Ed</description> <content:encoded><![CDATA[<p>JA,<br
/> I&#8217;m not sure, but there may be either a problem with copying/pasting, or something else too subtle to pick up on. I tried to copy/paste from your comment and it borked miserably with smart quotes, hypens, etc. so I just retyped it all by hand, and put some spaces in  that you did not. Oh, and I put an S on the end of the group file by habit and just called my output file out.txt&#8230;that is not what is causing problems for you. My command in a batch file (which works) looks like this&#8230;<br
/> <code>for /f "tokens=* delims=;" %%I in (groups.txt) do echo %%I &gt;&gt; out.txt &amp;&amp; dsquery group -name %%I | dsget group -members -expand &gt;&gt; out.txt</code><br
/> Try copying the above, and if that does not work, try typing it in long hand to make sure no character glitches are killing you.<br
/> Let me know if that works any better for you,<br
/> Ed</p> ]]></content:encoded> </item> <item><title>By: JA</title><link>http://retrohack.com/how-to-document-active-directory-group-memberships/comment-page-1/#comment-786</link> <dc:creator>JA</dc:creator> <pubDate>Mon, 26 Jul 2010 12:33:57 +0000</pubDate> <guid
isPermaLink="false">http://retrohack.com/howtodocument-active-directory-group-memberships/#comment-786</guid> <description>This looks exactly like what I need.I seem to run into a snag with this which I&quot;m sure is user error.I can run this code no problem to get the list of groups:
dsquery group -limit 0 &gt; groups.txtI run into an error when I run the code:
for /f &quot;tokens=* delims=;&quot; %%I in (group.txt) do echo %%I &gt;&gt; groupmembers.txt &amp;&amp; dsquery group -name %%I &#124; dsget group –members –expand &gt;&gt;groupmembers.txtThe error I get is dsget failed:&#039;Target object for this command&#039; is missing.I am running it in a batch file using %% instead of % (i tired it both ways) on a DC with Domain admin credentials.I run the batch file from the same directory as the groups.txt file.Any ideas on what I am doing wrong?
Thanks!</description> <content:encoded><![CDATA[<p>This looks exactly like what I need.</p><p>I seem to run into a snag with this which I&#8221;m sure is user error.</p><p>I can run this code no problem to get the list of groups:<br
/> dsquery group -limit 0 &gt; groups.txt</p><p>I run into an error when I run the code:<br
/> for /f &#8220;tokens=* delims=;&#8221; %%I in (group.txt) do echo %%I &gt;&gt; groupmembers.txt &amp;&amp; dsquery group -name %%I | dsget group –members –expand &gt;&gt;groupmembers.txt</p><p>The error I get is dsget failed:&#8217;Target object for this command&#8217; is missing.</p><p>I am running it in a batch file using %% instead of % (i tired it both ways) on a DC with Domain admin credentials.</p><p>I run the batch file from the same directory as the groups.txt file.</p><p>Any ideas on what I am doing wrong?<br
/> Thanks!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: retrohack.com @ 2012-02-09 10:06:02 by W3 Total Cache -->
