扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
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. 创建任务计划
![](/upload/otherpic58/175091.jpg)
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流