だから私は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
ご協力いただきありがとうございます