<?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/"
	>

<channel>
	<title>Indented! &#187; Exchange 2007</title>
	<atom:link href="http://www.indented.co.uk/index.php/tag/exchange-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.indented.co.uk</link>
	<description></description>
	<lastBuildDate>Mon, 17 Oct 2011 19:03:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Exchange 2007 &amp; Manager Can Update Membership List</title>
		<link>http://www.indented.co.uk/index.php/2008/10/22/exchange-2007-manager-can-update-membership-list/</link>
		<comments>http://www.indented.co.uk/index.php/2008/10/22/exchange-2007-manager-can-update-membership-list/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 11:29:17 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[managedby]]></category>

		<guid isPermaLink="false">http://www.highorbit.co.uk/?p=389</guid>
		<description><![CDATA[I recently went through another migration. One of the post migration tasks was to fix permission to update lists. The &#8220;ManagedBy&#8221; attribute had been copied across, but not the security descriptor from the group. This show PowerShell script can be run from the Exchange Management Shell to grab the value from ManagedBy and write it [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I recently went through another migration. One of the post migration tasks was to fix permission to update lists. The &#8220;ManagedBy&#8221; attribute had been copied across, but not the security descriptor from the group.</p>
<p>This show PowerShell script can be run from the Exchange Management Shell to grab the value from ManagedBy and write it back to the security descriptor. It&#8217;s a little messy, especially as there&#8217;s no way to check on the AD level if the box is ticked except by the security descriptor.<br />
<span id="more-389"></span></p>
<pre class="brush: powershell; title: ; notranslate">
Function Get-Groups {
  $domainSearcher = New-Object DirectoryServices.DirectorySearcher
  $domainSearcher.Filter = (&quot;(&amp;(objectClass=group)(mail=*)(managedBy=*))&quot;)
  [Void]$domainSearcher.PropertiesToLoad.Add(&quot;managedby&quot;)
  [Void]$domainSearcher.PropertiesToLoad.Add(&quot;name&quot;)

  $objSearcher.FindAll() `
    | Select-Object `
      @{n=&quot;GroupName&quot;;e={$_.Properties.name}}, `
      @{n=&quot;ManagedBy&quot;;e={ ([ADSI](&quot;LDAP://&quot; + `
        $_.Properties.managedby)).Get(&quot;userPrincipalName&quot;) }}
}

Get-Groups | %{
  Add-ADPermission -Identity $_.GroupName -User $_.ManagedBy `
    -AccessRights WriteProperty -Properties &quot;member&quot; }
</pre>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.indented.co.uk/index.php/2008/10/22/exchange-2007-manager-can-update-membership-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

