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