Automate your mundane
IT Tasks using our pre-made,
ready-to-run scripts.
Slider

Password Reset PowerShell Script

The Global Admin on an M365 account can run this script and prompt multiple users for a password reset in one go. Reset for a single user can also be executed through this script.

Syntax

#it will install azuread module please install all
Install-Module -Name AzureAD

#it will connect the user account to office
Get-Credential

#user login to office account with global admin rights
Connect-MsolService -Credential $M365credentials

#just to check we are connected to rightdomain

Download Full Script

Share Script:

Purpose:This script would reset multiple user passwords in one go. Password reset for a single user can also be executed through this script. Every email account in the company, and those that are signed on PCs as logins will have the updated password
Modification:Once the global admin logs into his account, and runs this script every user in the domain would be able to reset their passwords
Type:PowerShell Script (ps1)
Compatibility:Windows
Tags:password, password reset, M365, M365 Global Admin
Reference link: