無法辨識 'Search-Mailbox' 詞彙是否為 Cmdlet、函數、指令檔或可執行程式的名稱

想要使用Search-Mailbox來清空某一信箱內的郵件,但卻無法執行該Command.
search-mailbox -identity username -deletecontent
原因為登入使用PowerShell的使用者(如:Administrator)沒有加入Discovery Management群組.
可以用Get-Command來查詢有沒有Search-Mailbox這個Command,只要有加入Discovery Management群組,
就會有該Command.
參考文章:
http://blog.csdn.net/fogyisland2000/article/details/8919864
https://social.technet.microsoft.com/Forums/zh-TW/489420dc-b23d-463d-9c89-31f2e835ca47/-searchmailbox-cmdlet?forum=powershellzhcht
search-mailbox -identity username -deletecontent
原因為登入使用PowerShell的使用者(如:Administrator)沒有加入Discovery Management群組.
可以用Get-Command來查詢有沒有Search-Mailbox這個Command,只要有加入Discovery Management群組,
就會有該Command.
參考文章:
http://blog.csdn.net/fogyisland2000/article/details/8919864
https://social.technet.microsoft.com/Forums/zh-TW/489420dc-b23d-463d-9c89-31f2e835ca47/-searchmailbox-cmdlet?forum=powershellzhcht