<?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>Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx</link><description>&amp;#160; Hey, Scripting Guy! I need to use Windows PowerShell 2.0 to find groups in Active Directory Domain Services (AD DS) that are not being used. Over the years, we have had several network administrators. Some of them were good, and some had challenges</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3514718</link><pubDate>Thu, 16 Aug 2012 13:48:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3514718</guid><dc:creator>MaxR</dc:creator><description>&lt;p&gt;This is good if no one is in the groups not a real world example though, The real question would be how to tell if the group memebership has been not used. Expiring the groups is not really a good way to accomplish this. More administrative effort if you have thousands of distro /user/ computer groups. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3514718" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3475326</link><pubDate>Fri, 13 Jan 2012 14:05:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3475326</guid><dc:creator>Tony Massa</dc:creator><description>&lt;p&gt;Before you just delete the &amp;quot;empty groups&amp;quot;, make sure you&amp;#39;re checking for primaryGroupID (e.g. &amp;#39;Domain Users&amp;#39;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3475326" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3420320</link><pubDate>Mon, 11 Apr 2011 13:39:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3420320</guid><dc:creator>dbutch1976</dc:creator><description>&lt;p&gt;This Powershell command will give me a listing of all the security groups in my AD:&lt;/p&gt;
&lt;p&gt;Get-ADGroup -filter {GroupCategory -eq &amp;quot;Security&amp;quot;}&lt;/p&gt;
&lt;p&gt;How do I modify the command to give me a list of all groups created or changed before a certain date? &amp;nbsp;I&amp;#39;ve opened the properties of the group in ADSIEDIT.msc and I can see these two fields:&lt;/p&gt;
&lt;p&gt;whenChanged&lt;/p&gt;
&lt;p&gt;whenCreated&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3420320" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3383186</link><pubDate>Fri, 28 Jan 2011 09:14:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3383186</guid><dc:creator>Gerry</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;I am really a Fanatic of powershell, and also thank you for the additional knowledge that you posted here and its very useful..but one thing that i did not find in any site on how to remove global security group in an AD user using powershell v2. someone can help me please :)..i really need it in my daily task as an IT systems.&lt;/p&gt;
&lt;p&gt;thank you in advance&lt;/p&gt;
&lt;p&gt;Gerry&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3383186" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3348694</link><pubDate>Thu, 05 Aug 2010 23:59:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3348694</guid><dc:creator>AD needs a couple of new attributes for groups...</dc:creator><description>&lt;p&gt;...one attribute that contains a date/time stamp which shows the &amp;quot;last time a group was queried&amp;quot;, and one attribute which shows &amp;quot;what queried that group&amp;quot;, this would help significantly in removing old groups from large AD deployments that aren&amp;#39;t well documented...please please please get the Directory Services team to consider :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3348694" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3348218</link><pubDate>Tue, 03 Aug 2010 13:03:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3348218</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;That code seems cool for sure but what about this one liner ;-) ?&lt;/p&gt;
&lt;p&gt;adfind -f &amp;quot;&amp;amp;(objectclass=group)(!member=*)&amp;quot; -dsq|admod -unsafe -rm&lt;/p&gt;
&lt;p&gt;Joe rules !!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3348218" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3346820</link><pubDate>Mon, 26 Jul 2010 10:29:53 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3346820</guid><dc:creator>Oliver Lipkau</dc:creator><description>&lt;p&gt;That&amp;#39;s a cool code.&lt;/p&gt;
&lt;p&gt;But doesn&amp;#39;t work on domains that do not run win 2008 r2.&lt;/p&gt;
&lt;p&gt;here is my function:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://poshcode.org/2023"&gt;http://poshcode.org/2023&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=3346820" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Find Active Directory Domain Services Groups Not Being Used?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/22/hey-scripting-guy-how-can-i-use-windows-powershell-2-0-to-find-active-directory-domain-services-groups-not-being-used.aspx#3346280</link><pubDate>Fri, 23 Jul 2010 12:07:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3346280</guid><dc:creator>Benny Jackson</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to clean up AD, the distributions list right not, do you have a script that will tell when a distribution list was last used and by who?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3346280" width="1" height="1"&gt;</description></item></channel></rss>