Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - List delegates in exchange

Reply
 
Old 08-09-2007   #1 (permalink)
Thomas, Jennifer


 
 

List delegates in exchange

We often have people leave the company and we strip their mail attributes -
we find that sometimes they have been made delegates in outlook. I am
looking for a way to use poweshell to show me whose mailboxes they have been
made delegates on so that I can remove them before users start getting NDRs.
Here is what I have so far .... but not working

get-mailboxcalendarsettings |fl | where {$ResourceDelegates -contains
"{username}"} >C:\delegates.txt


My System SpecsSystem Spec
Old 08-09-2007   #2 (permalink)
Brandon Shell


 
 

Re: List delegates in exchange

I do not have exchange 2k7 installed ATM, but I think this does what you
want

get-mailboxcalendarsettings | where-object{$_.ResourceDelegates -match
"$name"} | out-file c:\delegates.txt -enc ASCII


"Thomas, Jennifer" <Jewles_Net@hotmail.com> wrote in message
news:63AD0780-844A-42B0-9773-AEFFCA5D1477@microsoft.com...
> We often have people leave the company and we strip their mail
> attributes - we find that sometimes they have been made delegates in
> outlook. I am looking for a way to use poweshell to show me whose
> mailboxes they have been made delegates on so that I can remove them
> before users start getting NDRs. Here is what I have so far .... but not
> working
>
> get-mailboxcalendarsettings |fl | where {$ResourceDelegates -contains
> "{username}"} >C:\delegates.txt


My System SpecsSystem Spec
Old 08-09-2007   #3 (permalink)
Shay Levi


 
 

Re: List delegates in exchange

First, fl is not in place. You can safely remove it.
Mostly, Format-List is expected to be the last in the pipe line and used
to format the final output.

When I try to set ResourceDelegates using set-mailboxcalendarsettings I get
an error
"ResourceDelegates can only be enabled on resource mailboxes".

Just starting my way in ex 2007, I cant tell much, but it seems to me that
ResourceDelegates
is for other type of mailbox (i.e., Room Resource).


Shay
http://scriptolog.blogspot.com



> We often have people leave the company and we strip their mail
> attributes - we find that sometimes they have been made delegates in
> outlook. I am looking for a way to use poweshell to show me whose
> mailboxes they have been made delegates on so that I can remove them
> before users start getting NDRs. Here is what I have so far .... but
> not working
>
> get-mailboxcalendarsettings |fl | where {$ResourceDelegates -contains
> "{username}"} >C:\delegates.txt
>



My System SpecsSystem Spec
Old 08-20-2007   #4 (permalink)
Thomas, Jennifer


 
 

Re: List delegates in exchange

You should haveResourceDelegates on all types of mailboxes.


get-mailboxcalendarsettings | where {$ResourceDelegates -contains
"{username}"} >C:\delegates.txt



"Shay Levi" <no@addre.ss> wrote in message
news:8766a94442208c9a9058671fa14@news.microsoft.com...
> First, fl is not in place. You can safely remove it. Mostly, Format-List
> is expected to be the last in the pipe line and used to format the final
> output.
> When I try to set ResourceDelegates using set-mailboxcalendarsettings I
> get an error
> "ResourceDelegates can only be enabled on resource mailboxes".
>
> Just starting my way in ex 2007, I cant tell much, but it seems to me that
> ResourceDelegates is for other type of mailbox (i.e., Room Resource).
>
>
> Shay
> http://scriptolog.blogspot.com
>
>
>
>> We often have people leave the company and we strip their mail
>> attributes - we find that sometimes they have been made delegates in
>> outlook. I am looking for a way to use poweshell to show me whose
>> mailboxes they have been made delegates on so that I can remove them
>> before users start getting NDRs. Here is what I have so far .... but
>> not working
>>
>> get-mailboxcalendarsettings |fl | where {$ResourceDelegates -contains
>> "{username}"} >C:\delegates.txt
>>

>
>


My System SpecsSystem Spec
Old 08-31-2007   #5 (permalink)
Shay Levi


 
 

Re: List delegates in exchange

I'm late on this, guess I missed your response.

PS C:\> Set-MailboxCalendarSettings -Identity "administrator" -ResourceDelegates
"Shay"
Set-MailboxCalendarSettings : ResourceDelegates can only be enabled on resource
mailboxes
At line:1 char:28
+ Set-MailboxCalendarSettings <<<< -Identity "administrator" -ResourceDelegates
"shay"

BTW, litlle typo, $ResourceDelegates should be $_.ResourceDelegates


Shay
http://scriptolog.blogspot.com


Quote:

> You should haveResourceDelegates on all types of mailboxes.
>
> get-mailboxcalendarsettings | where {$ResourceDelegates -contains
> "{username}"} >C:\delegates.txt
>
> "Shay Levi" <no@xxxxxx> wrote in message
> news:8766a94442208c9a9058671fa14@xxxxxx
>
Quote:

>> First, fl is not in place. You can safely remove it. Mostly,
>> Format-List
>> is expected to be the last in the pipe line and used to format the
>> final
>> output.
>> When I try to set ResourceDelegates using set-mailboxcalendarsettings
>> I
>> get an error
>> "ResourceDelegates can only be enabled on resource mailboxes".
>> Just starting my way in ex 2007, I cant tell much, but it seems to me
>> that ResourceDelegates is for other type of mailbox (i.e., Room
>> Resource).
>>
>> Shay
>> http://scriptolog.blogspot.com
Quote:

>>> We often have people leave the company and we strip their mail
>>> attributes - we find that sometimes they have been made delegates in
>>> outlook. I am looking for a way to use poweshell to show me whose
>>> mailboxes they have been made delegates on so that I can remove them
>>> before users start getting NDRs. Here is what I have so far .... but
>>> not working
>>>
>>> get-mailboxcalendarsettings |fl | where {$ResourceDelegates
>>> -contains "{username}"} >C:\delegates.txt
>>>

My System SpecsSystem Spec
Old 08-31-2007   #6 (permalink)
Shay Levi


 
 

Re: List delegates in exchange

Ops...

Shay
http://scriptolog.blogspot.com


Quote:

> I'm late on this, guess I missed your response.
>
> PS C:\> Set-MailboxCalendarSettings -Identity "administrator"
> -ResourceDelegates
> "Shay"
> Set-MailboxCalendarSettings : ResourceDelegates can only be enabled on
> resource
> mailboxes
> At line:1 char:28
> + Set-MailboxCalendarSettings <<<< -Identity "administrator"
> -ResourceDelegates
> "shay"
> BTW, litlle typo, $ResourceDelegates should be $_.ResourceDelegates
>
> Shay
> http://scriptolog.blogspot.com
Quote:

>> You should haveResourceDelegates on all types of mailboxes.
>>
>> get-mailboxcalendarsettings | where {$ResourceDelegates -contains
>> "{username}"} >C:\delegates.txt
>>
>> "Shay Levi" <no@xxxxxx> wrote in message
>> news:8766a94442208c9a9058671fa14@xxxxxx
Quote:

>>> First, fl is not in place. You can safely remove it. Mostly,
>>> Format-List
>>> is expected to be the last in the pipe line and used to format the
>>> final
>>> output.
>>> When I try to set ResourceDelegates using
>>> set-mailboxcalendarsettings
>>> I
>>> get an error
>>> "ResourceDelegates can only be enabled on resource mailboxes".
>>> Just starting my way in ex 2007, I cant tell much, but it seems to
>>> me
>>> that ResourceDelegates is for other type of mailbox (i.e., Room
>>> Resource).
>>> Shay
>>> http://scriptolog.blogspot.com
>>>> We often have people leave the company and we strip their mail
>>>> attributes - we find that sometimes they have been made delegates
>>>> in outlook. I am looking for a way to use poweshell to show me
>>>> whose mailboxes they have been made delegates on so that I can
>>>> remove them before users start getting NDRs. Here is what I have so
>>>> far .... but not working
>>>>
>>>> get-mailboxcalendarsettings |fl | where {$ResourceDelegates
>>>> -contains "{username}"} >C:\delegates.txt
>>>>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: List AD user with or without an Exchange Mailbox PowerShell
List AD user with or without an Exchange Mailbox PowerShell
Delegates help .NET General
Hosting Powershell in App - Obtaining delegates to powershellfunctions PowerShell
Question about Exchange Management Console and Exchange cmdlets PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46