利用Powershell 脚本和定时任务自动批量开邮箱
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了利用Powershell 脚本和定时任务自动批量开邮箱相关的知识,希望对你有一定的参考价值。
- 首先确保powershell 执行策略
PS C:Usersadministrator.51TALK> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
PS C:Usersadministrator.51TALK> Get-ExecutionPolicy
RemoteSigned
- 写PS脚本
Add-PSSnapin microsoft.exchange* Import-Module activedirectory Get-User -OrganizationalUnit "北京" -RecipientTypeDetails user | enable-mailbox -database bjstaff
3. 创建任务计划

以上是关于利用Powershell 脚本和定时任务自动批量开邮箱的主要内容,如果未能解决你的问题,请参考以下文章