Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using Powershell scripts and scheduled tasks to automatically open mailboxes in batches

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

First make sure that the powershell execution policy PS C:\ Users\ administrator.51TALK > Set-ExecutionPolicy-ExecutionPolicy RemoteSignedPS C:\ Users\ administrator.51TALK > Get-ExecutionPolicyRemoteSigned writes the PS script Add-PSSnapin microsoft.exchange*Import-Module activedirectory $dbs= @ ("bjstaff01", "bjoffice", "bjstaff02", "bjstaff03") $users= Get-User-OrganizationalUnit "Beijing"-RecipientTypeDetails user foreach ($I in $users) {$db= get-random-InputObject $dbsEnable-Mailbox-Identity $I-Database $db} 3. Create a task plan! [] (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=)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report