Link to home
Start Free TrialLog in
Avatar of Jean-Jacques CELMA
Jean-Jacques CELMAFlag for France

asked on

GET-MAILBOXPERMISSION : enable/disable user

I am trying to figure out how can I display user enable/disable status with this script:

Get-Mailbox -ResultSize Unlimited  -RecipientTypeDetails sharedmailbox| Get-MailboxPermission | Where-Object { ($_.IsInherited -eq $False) -and -not ($_.User -like "NT AUTHORITY\SELF") -and -not ($_.User -like "S-1*") -and ($_.identity -like "Baby*")} | Select user,Identity,@{n="Office";e={(Get-recipient $_.Identity).CountryOrRegion}},@{n="Enabled/Disabled";e={(Get-User $_.User).Enabled}}

Open in new window

I am getting an empty field for the enable/disable column

Any clues?
ASKER CERTIFIED SOLUTION
Avatar of DEMAN-BARCELO (MVP) Thierry
DEMAN-BARCELO (MVP) Thierry
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial