<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	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>blog.powershell.no &#187; Auditing</title>
	<atom:link href="http://blog.powershell.no/category/auditing/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powershell.no</link>
	<description>On Windows PowerShell and other admin-related topics</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.powershell.no' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e22e511529c14fbc92cde5589d6231b4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>blog.powershell.no &#187; Auditing</title>
		<link>http://blog.powershell.no</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.powershell.no/osd.xml" title="blog.powershell.no" />
	<atom:link rel='hub' href='http://blog.powershell.no/?pushpress=hub'/>
		<item>
		<title>Active Directory group membership modifications report</title>
		<link>http://blog.powershell.no/2009/10/11/active-directory-group-membership-modifications-report/</link>
		<comments>http://blog.powershell.no/2009/10/11/active-directory-group-membership-modifications-report/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 20:16:06 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Active Directory management]]></category>
		<category><![CDATA[Auditing]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Active Directory group membership auditing]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2009/10/11/active-directory-group-membership-modifications-report/</guid>
		<description><![CDATA[Based on customer needs I`ve created a Windows PowerShell script to report Active Directory group membership modifications. The script are uploaded to PoshCode and available from here. In Windows 2000 Server and Windows Server 2003, the following security event IDs were valid for group membership changes: Scope Member added Member removed Local 636 637 Global [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=272&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Based on customer needs I`ve created a Windows PowerShell script to report Active Directory group membership modifications. The script are uploaded to <a href="http://poshcode.org">PoshCode</a> and available from <a href="http://poshcode.org/1810">here</a>.</p>
<p>In Windows 2000 Server and Windows Server 2003, the following security event IDs were valid for group membership changes:</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="133" valign="top">Scope</td>
<td width="133" valign="top">Member added</td>
<td width="133" valign="top">Member removed</td>
</tr>
<tr>
<td width="133" valign="top">Local</td>
<td width="133" valign="top">636</td>
<td width="133" valign="top">637</td>
</tr>
<tr>
<td width="133" valign="top">Global</td>
<td width="133" valign="top">632</td>
<td width="133" valign="top">633</td>
</tr>
<tr>
<td width="133" valign="top">Universal</td>
<td width="133" valign="top">660</td>
<td width="133" valign="top">661</td>
</tr>
</tbody>
</table>
<p>In Windows Server 2008 and Windows Server 2008 R2 the security event IDs changed:</p>
<table border="0" cellspacing="0" cellpadding="2" width="401">
<tbody>
<tr>
<td width="133" valign="top">Scope</td>
<td width="133" valign="top">Member added</td>
<td width="133" valign="top">Member removed</td>
</tr>
<tr>
<td width="133" valign="top">Local</td>
<td width="133" valign="top">4732</td>
<td width="133" valign="top">4733</td>
</tr>
<tr>
<td width="133" valign="top">Global</td>
<td width="133" valign="top">4728</td>
<td width="133" valign="top">4729</td>
</tr>
<tr>
<td width="133" valign="top">Universal</td>
<td width="133" valign="top">4756</td>
<td width="133" valign="top">4757</td>
</tr>
</tbody>
</table>
<p><a href="http://support.microsoft.com/kb/301677/EN-US/">Source for 2000/2003 event IDs.</a><br />
<a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;947226">Source for 2008/2008 R2 event IDs</a>.</p>
<p>Group membership auditing are enabled by default from Windows 2000 Server to Windows Server 2008 R2, so there are no need change any auditing settings to accomplish this.<br />
I`ve added event ID`s for both 2000/2003 and 2008/2008 R2 to the script to cover all event ID`s currently available.<br />
Group membership changes are logged to the Security eventlog on the domain controller the modification was run against. Because of this the script are set up to get all domain controllers in the current domain and loop through the security eventlog on each of them, searching for the relevant event ID`s described in the table above.</p>
<p>The script are based on Alan Renouf`s <a href="http://www.virtu-al.net/2009/08/18/powercli-daily-report-v2/">Daily Report script for PowerCLI</a>.</p>
<p>The “isWithin”-function are taken from <a href="http://blogs.msdn.com/powershell/archive/2006/09/06/DateTime-Utility-Functions.aspx">Jeffrey Snover`s blog-post regarding DateTime Utility Functions</a>.</p>
<p>Preview of the HTML-report the script will generate:</p>
<p><a href="http://janegilring.files.wordpress.com/2009/10/image.png"><img style="display:inline;border:0;" title="image" src="http://janegilring.files.wordpress.com/2009/10/image_thumb.png?w=644&#038;h=268" border="0" alt="image" width="644" height="268" /></a></p>
<p>A tip would be to run the script as a scheduled task e.g. once a day, and store the file in a central location.</p>
<p>For those of you interested in Active Directory auditing I would recommend you to have a look at the <a href="http://technet.microsoft.com/en-us/library/cc731607(WS.10).aspx">AD DS Auditing Step-by-Step Guide</a> on Microsoft TechNet.<br />
Personally I think the new &#8220;directory service changes&#8221; category are very useful, which allows us to see both the old and new values on modified Active Directory user objects.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=272&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2009/10/11/active-directory-group-membership-modifications-report/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2009/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>