【发布时间】:2019-10-31 07:06:09
【问题描述】:
所以我正在编写一个脚本来自动连接到 o365 并在线交换,我能够做到这一点,然后脚本配偶向我展示了特定的属性,并且由于某种原因它只选择了一个属性
$getusrname = read-host "what is the user name?"
Get-Mailbox -Identity *$getusrname* | ForEach-Object { write-host -ForegroundColor White "I found these users: $_"} | select name, @{n="Email adress";e='UserPrincipalName'}
我得到这个输出:
I found these users: Lev Leiderman
感谢您的帮助
【问题讨论】:
标签: powershell office365 select-object