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

O365 batch reset user password

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

After O365 creates a large number of users, it needs to reset user passwords in batches, but only a small number of users can be reset at a time through the console. If there are thousands of users, it will be very inefficient. At this time, you need to use the powershell of O365 to reset in batches.

First you need to download the powershell o365 support module:

Microsoft Online Services Login Assistant, download link below:

http://www.microsoft.com/zh-cn/download/details.aspx? id=41950

Microsoft Azure Active Directory module, download link below:

http://go.microsoft.com/fwlink/p/? linkid=236297

1. Run powershell as administrator

2. Enter import-moudle MSOnline to import O365 module, run Get-Module to see MSOnline has been imported.

3. Enter Connect-MsolService to log in to O365.

4. After logging in, enter Get-MsolUser to view user information in the cloud.

5. Reset the user password as follows. You can choose to reset it in batches from departments or regions according to your needs. The commands are as follows:

Get-MsolUser -State X | Set-MsolUserPassword -NewPassword "p@ssw0rd"

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

Network Security

Wechat

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

12
Report