O365 PS password reset from list



  • Not being one to use PS.. can PS reset o365 passwords using a preset list of UserID to Password ( CSV file)?



  • Yup sure can:

    Set a Predefined Password for Office 365 users imported from a CSV File
    Step 1: Export Office 365 users account
    PowerShell command Syntax

    1
    Get-MsolUser | Select UserPrincipalName| Export-CSV
    Step 2: Set a Predefined Password

    1
    Import-CSV |%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword <Password> -ForceChangePassword $False}
    Example: Step 1: Export Office 365 users account

    Predefined Password-CSV

    PowerShell command Example

    1
    Get-MsolUser | Select UserPrincipalName|Export-CSV C:\Temp\o365users.csv
    1
    Import-CSV C:\Temp\o365users.csv |%{Set-MsolUserPassword -userPrincipalName $_.UserPrincipalName –NewPassword AbcAs123 -ForceChangePassword $False}



  • @gjacobse said in O365 PS password reset from list:

    Not being one to use PS.. can PS reset o365 passwords using a preset list of UserID to Password ( CSV file)?

    YEs it can.
    as you can see more options here
    https://o365info.com/manage-office-365-users-password-using/


Log in to reply