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

The problem of garbled codes in mailboxes after batch activation

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

Share

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

Step 1: please copy the following into a notepad and save the file as a bulk.ps1 file. Please note that this file has a .ps1 extension

$list=Get-Mailbox

ForEach ($item in $list)

{

$user=Get-User $item

$sam=$user.SAMAccountName

Set-Mailbox $item-Alias "$sam"

}

Step 2: save the bulk.ps1 file to the local C:\ root directory of Exchange 2010. Then open Exchange Management Shell:

Enter:

C:\ bulk.ps1

And then return to the car.

After completing the above steps, you should see that the aliases of all users' mailboxes have been changed to login names.

Note: $list=Get-Mailbox represents the mailbox variable.

$item represents the property variables for each mailbox.

$sam=$user.SAMAccountName represents the login name variable for each user

You can see that I have finished enabling 200 user mailboxes at a time using Exchange 2010 EMC

You can see that the column of aliases in the user's mailbox is all garbled.

Execute the bulk.ps1 file saved on disk C in EMS

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