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
>>>