<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Dan's Office 365 Page</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/the_meandering_path_to_exchange_knowledge/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/the_meandering_path_to_exchange_knowledge/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:37:24 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Want to List Office 365 Mailbox Permissions?</title>
      <link>https://docs.microsoft.com/archive/blogs/the_meandering_path_to_exchange_knowledge/want-to-list-office-365-mailbox-permissions</link>
      <pubDate>Fri, 26 Apr 2013 00:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Dan-O365]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/the_meandering_path_to_exchange_knowledge/2013/04/26/want-to-list-office-365-mailbox-permissions/</guid>
      <description><![CDATA[Hello Everyone-
&nbsp;
&nbsp;
Let&rsquo;s say you want to get mailbox permissions on a cloud...]]></description>
      <content:encoded><![CDATA[<p>Hello Everyone-</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Let&rsquo;s say you want to get mailbox permissions on a cloud mailbox- easy enough right? Well- when you look at the user you will see it is actually the samaccount name in O365- which has a partial section of the name and then a bunch of numbers. Not really useful. You can take this user and run get-user &ldquo;samaccountname&rdquo; and get the actual identity. But how do you get all that in one csv or get a list of all mailbox permissions?</p>
<p>&nbsp;</p>
<p>I was messing around with this since someone asked me if it was possible.. and here is what I came up with.</p>
<p>&nbsp;</p>
<p>$dan=get-mailboxpermission &ldquo;dan&rdquo;</p>
<p>$dan | select-object accessrights,user,@{Name="userprincipalname";Expression={get-user$_.user }} |Export-Csv c:\temp\test4.csv &ndash;notypeinformation</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">The report will look like this: ** so we <span style="text-decoration: underline;">ADD</span> the 3rd column after we perform a lookup for the value</p>
<div style="direction: ltr;">
<table style="border: 1pt solid #a3a3a3; border-collapse: collapse; direction: ltr;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.901in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">AccessRights</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">User</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">userprincipalname</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.901in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess,<br />&nbsp; ReadPermission</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NT<br />&nbsp; AUTHORITY\SELF</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.901in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NAMPR04A001\Deleg50549-408661602</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">Delegate2</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.901in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NAMPR04A001\dante50549-335097617</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">dantest3</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>What if you have a lot of mailboxes you want to find out about?</p>
<p>&nbsp;</p>
<p>Here is a good option as well..</p>
<p>$dan=get-mailbox|get-mailboxpermission</p>
<p>$dan | select-object identity,accessrights,user,@{Name="userprincipalname";Expression={get-user $_.user }} |Export-Csv c:\temp\test5.csv &ndash;notypeinformation</p>
<p>&nbsp;</p>
<p>The report will look like this now: (Including identity to indicate what mailbox we get permissions for)</p>
<p>&nbsp;</p>
<div style="direction: ltr;">
<table style="border: 1pt solid #a3a3a3; border-collapse: collapse; direction: ltr;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.152in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">Identity</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 3.134in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">AccessRights</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">User</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">userprincipalname</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.152in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">activesynctest1</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 3.134in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess,<br />&nbsp; ReadPermission</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NT<br />&nbsp; AUTHORITY\SELF</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.152in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">dan</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 3.134in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess,<br />&nbsp; ReadPermission</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NT<br />&nbsp; AUTHORITY\SELF</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.152in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">dan</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 3.134in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NAMPR04A001\Deleg50549-408661602</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">Delegate2</p>
</td>
</tr>
<tr>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.152in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">dan</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 3.134in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">FullAccess</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 2.707in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">NAMPR04A001\dante50549-335097617</p>
</td>
<td style="padding: 4pt; border: 1pt solid #a3a3a3; width: 1.409in; vertical-align: top;">
<p style="margin: 0in; color: black; font-family: Calibri; font-size: 11pt;">dantest3</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>** So you will notice there are some unresolved accounts. These are the system managed accounts. However the accounts added by the tenant administrators will be resolved.</p>
<p>Hope this helps someone out there.</p>]]></content:encoded>
    </item>
    <item>
      <title>Exchange 2010 Set-Databaseavailabilitygroup -Alternatewitnessserver Settings Cannot Be Removed Through Powershell</title>
      <link>https://docs.microsoft.com/archive/blogs/the_meandering_path_to_exchange_knowledge/exchange-2010-set-databaseavailabilitygroup-alternatewitnessserver-settings-cannot-be-removed-through-powershell</link>
      <pubDate>Thu, 10 Jun 2010 11:26:00 GMT</pubDate>
      <dc:creator><![CDATA[Dan-O365]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/the_meandering_path_to_exchange_knowledge/2010/06/10/exchange-2010-set-databaseavailabilitygroup-alternatewitnessserver-settings-cannot-be-removed-through-powershell/</guid>
      <description><![CDATA[I ran into this scenario a few weeks ago...

Customer installs Exchange 2010 and creates a...]]></description>
      <content:encoded><![CDATA[<h3 class="ms-SIfield">I ran into this scenario a few weeks ago...</h3>
<div style="color: #000000; font-size: small;">
<p>Customer installs Exchange 2010 and creates a Database Availability Group</p>
<p>Customer sets the AlternateWitnessServer and the AlternateWitnessDirectory parameters<em> </em>by using the set-databaseavailabilitygroup command.</p>
<p>Once a customer uses the -alternatewitnessserver and -alternatewitnessdirectory parameters to set values and decides to remove them there is no way in powershell to remove if they want to change their configuration.</p>
<p>If the customer tries to enter $Null for these parameters you may get "The command completed successfully but no settings of "DAGNAME" have been modified."</p>
<p>***If you use the same commands above with $NULL and there is not a server set already the process will find a witness server (hub server)&nbsp;for you the same as when you build a dag and do not specify a witness server.&nbsp;</p>
</div>
<h3 class="ms-SIfield">The logic for the command to set these two parameters does not have the ability to remove entries. If you set $Null it will actually find a Hub server and load it for you as the witness server.&nbsp;</h3>
<h3 class="ms-SIfield">Currently you can only remove the alternatewitnessserver and alternatewitnessdirectory by using ADSIEDIT. </h3>
<div style="color: #000000; font-size: small;">
<p>Open adsiedit.msc</p>
<p>Browse through the configuration context to Configuration&gt;Services&gt;Microsoft Exchange&gt;ORGname&gt;Administrative Group&gt;AGname&gt;Database Availability Groups&gt;Dagname</p>
<p>If you check the properties of the DAG you can change the following values:</p>
<p><strong>msExchAlternateFileShareWitness</strong> - change to &lt;not set&gt; by clearing the values</p>
<p><strong>msExchAlternateFileShareWitnessDirectory</strong> - change to &lt;not set&gt; by clearing the values</p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Exchange 2010 get-mailpublicfolder name returns No existing 'PublicFolderProxyInformation'</title>
      <link>https://docs.microsoft.com/archive/blogs/the_meandering_path_to_exchange_knowledge/exchange-2010-get-mailpublicfolder-name-returns-no-existing-publicfolderproxyinformation</link>
      <pubDate>Thu, 10 Jun 2010 11:21:00 GMT</pubDate>
      <dc:creator><![CDATA[Dan-O365]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/the_meandering_path_to_exchange_knowledge/2010/06/10/exchange-2010-get-mailpublicfolder-name-returns-no-existing-publicfolderproxyinformation/</guid>
      <description><![CDATA[Here is a recent issue I saw....

A customer migrates to Exchange 2010 environment. He...]]></description>
      <content:encoded><![CDATA[<div style="color: #000000; font-size: small;">
<h3 class="ms-SIfield">Here is a recent issue I saw....</h3>
<div style="color: #000000; font-size: small;">
<p>A customer migrates to Exchange 2010 environment. He replicates his public folders to other 2010 servers. On one or more of the servers he tries to get his mail enabled public folder information by using the get-mailpublicfolder command and specifying the "\publicfolder" parameter. </p>
<p>This will Generate an error code 4 in the application log and generate these details:</p>
<p>&nbsp; (PID 7428, Thread 125)<br />Task Get-MailPublicFolder writing error when processing record of index 0. <br />Error: Microsoft.Exchange.Data.Mapi.Common.MapiLogonFailedException: Can't logon to the the Exchange mailbox server 'contoso.com'. No existing 'PublicFolderProxyInformation' matches the following Identity: '\contoso\Test 2'. Make sure that you specified the correct 'PublicFolderProxyInformation' Identity and that you have the necessary permissions to view 'PublicFolderProxyInformation'.. ---&gt; Microsoft.Mapi.MapiExceptionLogonFailed: MapiExceptionLogonFailed: Unable to make connection to the server. (hr=0x80040111, ec=-2147221231)<br />Diagnostic context:<br />&nbsp;&nbsp;&nbsp; Lid: 37053&nbsp;&nbsp; Win32Error: 0x6A6</p>
</div>
<h3 class="ms-SIfield">There is not a mailbox database mounted on the server that has the System Attendant mailbox associated with it. When the \publicfolder parameter is passed we need to access the system attendant to perform a lookup for the folder path. This seems to be visible mainly on stand alone servers as opposed to a DAG node.</h3>
<div style="color: #000000; font-size: small;">
<p>Alternatively you can run the get-mailpublicfolder command with the "alias"&nbsp;specified and get results as expected. This is because we can look up the AD object in the MESO folder.</p>
</div>
<h3 class="ms-SIfield"></h3>
<div style="color: #000000; font-size: small;">This is currently under investigation, but a work around is to mount a mailbox store on the server that is generating the error, or if there is a database already mounted - verify the system attendant is properly configured to point to a valid homemdb.</div>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Welcome to my Blog</title>
      <link>https://docs.microsoft.com/archive/blogs/the_meandering_path_to_exchange_knowledge/welcome-to-my-blog</link>
      <pubDate>Thu, 10 Jun 2010 10:56:00 GMT</pubDate>
      <dc:creator><![CDATA[Dan-O365]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/the_meandering_path_to_exchange_knowledge/2010/06/10/welcome-to-my-blog/</guid>
      <description><![CDATA[As a Microsoft Employee I have a great advantage in seeing issues as they come in and help...]]></description>
      <content:encoded><![CDATA[<p>As a Microsoft Employee I have a great advantage in seeing issues as they come in and help customers. As I have data that is able to be passed on and be done by Exchange engineers I wish to pass this on to provide more support to those using Exchange Server. I hope I can provide some data that is not available anywhere else to help you out on the web. Thanks for visiting my blog!!</p>]]></content:encoded>
    </item>
  </channel>
</rss>