<?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>Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx</link><description>Microsoft PowerShell MVP, Sean Kearney, shows how to use Windows PowerShell to audit account creation in Active Directory.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx#3530446</link><pubDate>Sat, 03 Nov 2012 16:24:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3530446</guid><dc:creator>Mohd. Faisal Siddiqui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In this link: &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/814595"&gt;support.microsoft.com/.../814595&lt;/a&gt;, under &amp;#39;Configure Auditing for Specific Active Directory Objects&amp;#39;, steps are provided that explain how to configure auditing for specific active directory objects using GUI. However, I have thousands of users located under multiple OUs on which I would like to audit only a certain AD attribute of a specific user object. Hence, My goal is to come up with a PowerShell script that, upon running as a scheduled task, will automatically configure auditing on a specific &amp;quot;AD attribute&amp;quot; of a User object located in a certain OU. This AD attribute could be &amp;#39;manager&amp;#39;. The PowerShell script should be well written with comments that easily allows me to add/remove/edit the auditing of certain AD attributes of the User object located in a certain OU. Can somebody please help me in writing this script or may be come up with this PowerShell script?&lt;/p&gt;
&lt;p&gt;For those who wonder why I need to do this, here is the explanation. In the end, I intend to generate an SCOM alert via this auditing that will identify that the previous value of the &amp;#39;manager&amp;#39; AD attribute of a specific user &amp;#39;Henry&amp;#39; located in a certain &amp;#39;OU&amp;#39; with this distinguished name &amp;#39;dn&amp;#39; was changed from a certain value X to a certain value Y. I know already how to do this, but I am unable to come up with the PowerShell script described above.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Faisal&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3530446" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx#3485344</link><pubDate>Thu, 08 Mar 2012 01:20:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3485344</guid><dc:creator>change auditing tools</dc:creator><description>&lt;p&gt;Shiraj, if you need better reporting you should consider taking a look at netwrix AD change reporter or quest change auditor. Both offer great reporting capabilities and will be able to highlight new users, old users, etc. I know the netwrix tool is also available in a freeware version. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3485344" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx#3483226</link><pubDate>Sun, 26 Feb 2012 13:38:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3483226</guid><dc:creator>Oscar Virot</dc:creator><description>&lt;p&gt;I thing its a bit sad that that we use Quests tools, dont get me wrong, they are super for older installations, I would just like that people also get the MS cmdlets at the same time. I have seen people install quest tools, just because the examples told them to. If there is built in commands I think we should also show how to use them.&lt;/p&gt;
&lt;p&gt;@Shiraj Ali&lt;/p&gt;
&lt;p&gt;There shouldnt be any problems modifying the script to produce a list of all users that has been active (created a logon event on the domain controllers) during the last month.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3483226" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx#3482261</link><pubDate>Tue, 21 Feb 2012 15:25:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3482261</guid><dc:creator>Shiraj Ali</dc:creator><description>&lt;p&gt;Nice Scripts, but is it possible to get list of active users in AD in last 30 day or range of days?&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;shiraj&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3482261" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx#3476526</link><pubDate>Fri, 20 Jan 2012 21:57:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3476526</guid><dc:creator>Gokan Ozcifci</dc:creator><description>&lt;p&gt;I like so much you&amp;#39;re posts.. But maybe design could be betteR.. but I like so much your posts.. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3476526" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Audit Active Directory User Account Creation</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/12/23/use-powershell-to-audit-active-directory-user-account-creation.aspx#3472856</link><pubDate>Sun, 25 Dec 2011 19:48:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3472856</guid><dc:creator>Klaus Schulte</dc:creator><description>&lt;p&gt;Hi Sean&lt;/p&gt;
&lt;p&gt;this the something very true&lt;/p&gt;
&lt;p&gt;and you will save Mr. Blue&lt;/p&gt;
&lt;p&gt;having no idea of what to do&lt;/p&gt;
&lt;p&gt;powershell will help him through!&lt;/p&gt;
&lt;p&gt;Great stuff!&lt;/p&gt;
&lt;p&gt;The AD cmdlets are first class PS citizens!&lt;/p&gt;
&lt;p&gt;What I would recommend, is using the switches&lt;/p&gt;
&lt;p&gt;CreatedAfter and CreatedBefore of Get-QadUser&lt;/p&gt;
&lt;p&gt;which should be more efficient that using a&lt;/p&gt;
&lt;p&gt;where filter.&lt;/p&gt;
&lt;p&gt;Merry christmas, Sean, Ed, Teresa and to all readers of this blog!&lt;/p&gt;
&lt;p&gt;Klaus&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3472856" width="1" height="1"&gt;</description></item></channel></rss>