How to reset Office 365 user's password in a bulk using PowerShell by IT 360 Techbook

Опубликовано: 31 Октябрь 2024
на канале: IT 360 Techbook
2,849
30

#IT360techbook #IT360techbookchannel #IT360

#Office365 #PowerShell #Email #Emailsecurity #Microsoft #Windows

Welcome to "IT 360 Techbook"
This video will clearly explain you how to reset office 365 user's password in a bulk by using PowerShell script. This method will save your time and can execute this within a few seconds.

Method 1:
1) Connect-EXOPSSession -UserPricipalName [email protected]
2) Connect-MSOLService
3) Import-Csv “Source File Location” | % {Set-MsolUserPassword -userPrincipalName $_.UserName -NewPassword “Welcome@123” -ForceChangePassword $True }

Note:
ForceChangePassword - if this is true then users will have to change the password and first logon.
If this is false users will not prompt to change the password


Method 2:
1) Connect-EXOPSSession -UserPricipalName [email protected]
2) Connect-MSOLService
3) Import-Csv “Source File Location” | % {Set-MsolUserPassword -userPrincipalName $_.Username -NewPassword $_.Password -ForceChangePassword $False }

Subscribe to "IT 360 TechBook" to learn more about IT tips, tricks and shortcuts!
   / @it360techbook9  

Let's Connect!
  / irshad-b-syed-71160684  

This video is subjected to copyright act.
“Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for “fair use” for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.”

Thanks for watching. Don't forget to post your comments about this video & subscribe to "IT 360 Techbook" to get more videos.