Skip to main content

Posts

Showing posts from January, 2019

Change users Passwords centrally and send the new password through email

As an Office 365 admin sometimes you may have some unique requirements and at those times you may find that it's only PowerShell that you can turn to for help. This script is a solution to one such scenario. The script will take in a CSV with a list of Users and (predefined) passwords and set those passwords on AzureAD as a bulk and at the same time it'll generate an email containing the users new credentials and send it to the users personal email address. Note: You can use a random password generator such as this site  https://www.random.org/passwords/  to generate a list of passwords according to your requirements. ############################################################################# #       Author: Sidath U Liyanage #       Date: 14/01/2019 #       Satus: Bulk change user password #       Update: Initial functionality. #       Description: Bulk change password for a given list of users. #       Note!: Update the "PasswordChangeList.csv&quo