Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

Get-Mailboxpermission, zusätzliche Felder von Get-ADUser

$
0
0

Hallo zusammen,

get-mailbox -id "xyz" |Get-MailboxPermission | select identity,user,@{n="Office";e={(get-user -id $_.User.).office}}

ich möchte bei get-mailbox zusätzliche Information (Anzeigename und Office) anzeigen.

von get-mailbox brauche ich

Identity, User, AccessRights   und von get-ADuser noch Name oder displayname und Office

hier habe ich einen Tipp gefunden aber das klappt auch nicht

get-mailbox -id "xyz" | Get-MailboxPermission  | select -expandproperty user | get-aduser office,name

(get-mailbox -id "xyz" |Get-MailboxPermission) | get-aduser | select office,name


Chris




Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>