您好,登錄后才能下訂單哦!
PS C:\Users\administrator.51TALK> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
PS C:\Users\administrator.51TALK> Get-ExecutionPolicy
RemoteSigned
Add-PSSnapin microsoft.exchange*
Import-Module activedirectory
$dbs= @("bjstaff01","bjoffice","bjstaff02","bjstaff03")
$users= Get-User -OrganizationalUnit "北京" -RecipientTypeDetails user
foreach($i in $users){
$db= get-random -InputObject $dbs
Enable-Mailbox -Identity $i -Database $db
}
3. 創建任務計劃
![](https://cache.yisu.com/upload/information/20200311/29/175091.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。