<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://exchangeexchange.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>Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx</link><description>If you need to give a service account access to all mailboxes on a specific Exchange 2007 server you can run the following command: Get-mailboxserver &amp;lt;servername&amp;gt; | add-adpermission –user &amp;lt;service account&amp;gt; -accessrights GenericRead, GenericWrite</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#1276</link><pubDate>Fri, 16 Jan 2009 04:28:16 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:1276</guid><dc:creator>Joel Stidley</dc:creator><description>&lt;p&gt;You will need to run it again. You could setup a Scheduled Task to run the script periodically rather than having to do it manually.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=1276" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#1206</link><pubDate>Thu, 07 Aug 2008 09:01:20 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:1206</guid><dc:creator>fantom</dc:creator><description>&lt;p&gt;The command works great but how do I apply it to all new users without running it again ? &amp;nbsp;- Thanks&lt;/p&gt;
&lt;p&gt;Get-mailboxserver &amp;lt;servername&amp;gt; | add-adpermission –user &amp;lt;service account&amp;gt; -accessrights GenericRead, GenericWrite -extendedrights Send-As, Receive-As, ms-Exch-Store-Admin&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=1206" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#1205</link><pubDate>Thu, 07 Aug 2008 08:58:08 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:1205</guid><dc:creator>fantom</dc:creator><description>&lt;p&gt;The command below works great but how do I have the permmision applied to all new users without running it again ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Get-mailboxserver &amp;lt;servername&amp;gt; | add-adpermission –user &amp;lt;service account&amp;gt; -accessrights GenericRead, GenericWrite -extendedrights Send-As, Receive-As, ms-Exch-Store-Admin&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=1205" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#574</link><pubDate>Fri, 05 Jan 2007 16:30:27 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:574</guid><dc:creator>john</dc:creator><description>&lt;p&gt;It accepts this command:&lt;/p&gt;
&lt;p&gt;get-publicfolderdatabase | add-adpermission -user &amp;lt;service account&amp;gt; -ExtendedRights ms-exch-create-top-level-public-folder -AccessRights ReadProperty,GenericExecute&lt;/p&gt;
&lt;p&gt;Tested that in the shell and it gives back that the service account has&lt;/p&gt;
&lt;p&gt;those 3 permissions (without deny) on the database.&lt;/p&gt;
&lt;p&gt;but sadly enough.. the serviceaccount STILL can't create top level public folders in outlook when I remove him from the {exchange organization admins} group.&lt;/p&gt;
&lt;p&gt;So it is obviously not replicating the permissions down to the PF tree. &amp;nbsp;(I restarted the information store)&lt;/p&gt;
&lt;p&gt;sadly enough&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=574" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#573</link><pubDate>Fri, 05 Jan 2007 16:16:39 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:573</guid><dc:creator>john</dc:creator><description>&lt;p&gt;That's interesting! (can't say it's an improvement over 2003 though)&lt;/p&gt;
&lt;p&gt;anyway&lt;/p&gt;
&lt;p&gt;To find the PF DN there must me a smart way available which we can pipe into the command. &lt;/p&gt;
&lt;p&gt;searching..&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=573" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#572</link><pubDate>Fri, 05 Jan 2007 16:05:03 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:572</guid><dc:creator>Joel Stidley</dc:creator><description>&lt;P&gt;I got this from a contact at Microsoft:&lt;/P&gt;
&lt;P&gt;add-adpermission –id &amp;lt;DN of the PF hierarcy&amp;gt; -user &amp;lt;service account&amp;gt; -ExtendedRights ms-exch-create-top-level-public-folder -AccessRights ReadProperty,GenericExecute.&lt;/P&gt;
&lt;P&gt;This can also be done using ADSI Edit.&lt;/P&gt;
&lt;P&gt;The DN would be something like: CN=Public Folders,CN=Folder Hierarchies,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=YourExchangeOrg,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=YourDomain,DC=com&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=572" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#571</link><pubDate>Fri, 05 Jan 2007 08:44:19 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:571</guid><dc:creator>john</dc:creator><description>&lt;p&gt;Thanks again, but that command does not change the status quo.&lt;/p&gt;
&lt;p&gt;It finishes fine and grants the permission to the service account but the service account can not create a new top level public folder unless he is made member of the exchange organization administrators group in the AD.&lt;/p&gt;
&lt;p&gt;I see the same behavior with the event sink that I am trying to install on this e2k7.&lt;/p&gt;
&lt;p&gt;The eventsink script triggers ok on the onsave event of the service account's outlook calendar and passes the url over to the sink handler (com+) but when that tries to open a record to that user item it's also Access Denied. However, running the sink handler in debug mode, logged on as the service account works ok.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=571" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#570</link><pubDate>Fri, 05 Jan 2007 06:28:40 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:570</guid><dc:creator>Joel Stidley</dc:creator><description>&lt;p&gt;That command will work below the root, try this at the root:&lt;/p&gt;
&lt;p&gt;Add-PublicFolderAdministrativePermission&lt;/p&gt;
&lt;p&gt; \ -user &amp;lt;service account&amp;gt; -AccessRights AllExtendedRights&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=570" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#569</link><pubDate>Thu, 04 Jan 2007 23:42:47 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:569</guid><dc:creator>john</dc:creator><description>&lt;p&gt;Thanks! however on my 32 bits test version of 2007 it refuses to do that with a { Failed to commit the change on object &amp;quot;\&amp;quot; because Access is denied. } message.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=569" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#566</link><pubDate>Thu, 04 Jan 2007 20:29:49 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:566</guid><dc:creator>Joel Stidley</dc:creator><description>&lt;p&gt;In order to allow an email enabled account to be able to create a root folder you can run this:&lt;/p&gt;
&lt;p&gt;Add-PublicFolderClientPermission -Identity &amp;quot;\&amp;quot; -User &amp;lt;service account&amp;gt; -AccessRights CreateItems&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=566" width="1" height="1"&gt;</description></item><item><title>re: Giving service account access to all mailboxes on an Exchange 2007 server</title><link>http://exchangeexchange.com/blogs/joel.stidley/archive/2006/12/10/giving-service-account-access-to-all-mailboxes-on-exchange-2007-server.aspx#563</link><pubDate>Thu, 04 Jan 2007 15:32:55 GMT</pubDate><guid isPermaLink="false">44d5531b-108b-4aea-a889-7316a6b4a5fa:563</guid><dc:creator>john</dc:creator><description>&lt;p&gt;Thanks for the info, however this does not give the &amp;lt;service account&amp;gt; user the required permissions to create top level public folders. Any idea how to do that?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://exchangeexchange.com/aggbug.aspx?PostID=563" width="1" height="1"&gt;</description></item></channel></rss>