We help IT Professionals succeed at work.
Get Started

Listing Outlook delegates via Powershell (Exchange 2010)

taartero
taartero asked
on
39,155 Views
Last Modified: 2012-11-07
I am running this command to get a list of delegates:
get-mailbox -ResultSize unlimited | Get-CalendarProcessing | ? {$_.resourcedelegates -notlike “”}| ft identity,ResourceDelegates -auto >"C:\backup\delegates.txt"


I have 2 problems with the output.

1.  Even though I currently have my Powershell layout with a 'Screen Buffer Size' of 1200, I have many users that could have a dozen delegates. This causes the results to not only wrap, but end (when there is not enough space) with  '.....'

2.   I would rather have a script that returned a value for instance; Column 1 Identity, Column 2 Delegate

The difference being if Jon Doe had 3 delegates it would look something like this:

Identity                            ResourceDelegates
John Doe                          Delegate 1
John Doe                          Delegate 2
John Doe                          Delegate 3




If you try to run my current script it looks more like this
Identity                            ResourceDelegates
John Doe                          Delegate 1,Delegate 2, Delegate 3

keep in mind the reason why im running out of space is, the name 'John Doe' and the delegate names are being returned with the full path in AD to where the accounts reside.
I didn't find a property like DisplayName I could use with this command
Comment
Watch Question
IT Infrastructure Architect
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE