Powershell in Exch - problem with getting correct results
Hello everyone Im starting with powershell and looking how to pipe the following: Get-mailbox and get-mailboxstatistics The target I would like to achieve is to get mailbox name and get mailbox delegates. I can easly use Get-Mailbox -OrganizationalUnit "some/ou/rooms" |get-mailboxcalendarsettings |Select-object ResourceDelegatesBut this gives me only resource delegates. Any tips ?MCSA / MCTS
February 9th, 2010 11:58am

get-mailboxpermission will get you a list of the folder permissions that have been granted. The list of actual delegates to the mailbox isn't available via the EMS cmdlets, but it can be had with Powershell using the Exchange Web Services API.
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2010 4:08pm

I think you might be wrong since Get-Mailboxcalendarsettings | select-object ResourceDelegates will return the actual delegates for the mailboxMCSA / MCTS
February 9th, 2010 8:40pm

Interesting. I've been wrong before, and could be again. Does it return all the delegates, or just delegates with calendar permissions, and does that work on all mailboxes, or just resources?
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2010 8:45pm

Seems I made small mistake in the first post as well I want to pipe the get-mailbox and get-mailboxcalendarsettings to get mailbox name and delegate for that mailbox @mjolinor: More about get-mailboxcalendarsettings you can find here http://technet.microsoft.com/en-us/library/aa998229(EXCHG.80).aspxMCSA / MCTS
February 10th, 2010 12:10am

Quick and dirty:get-mailbox | get-mailboxcalendarsettings | select {$_.identity.name},resourcedelegatesWe'll need to work on some formatting if you want it pretty.
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2010 12:51am

FYI, you are correct that get-mailboxcalendarsettings will show the delegates to the mailbox. It does not tell you what permissions/roles they have. If you create a delegate on a mailbox and set all of their permissions to "None" it still shows up as a delegate. EWS will give you a detailed breakdown of which permissions they have on each folder.
February 10th, 2010 1:41am

A little bit changed so you have the proper naming of columns get-mailbox -OrganizationalUnit "some/Ou" | get-mailboxcalendarsettings | select-object @{name="Room Name";expression={$_.identity.name}},resourcedelegatesMCSA / MCTS
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2010 1:54pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics