Others

Generating Password Change Reports Office 365 and AD

Office 365:

  1. Connect-MsolService (To connect with office 365)
  2. Get-MsolUser -EnabledFilter EnabledOnly | select DisplayName,UserPrincipalName, LastPasswordChangeTimeStamp,isLicensed | Export-CSV C:\Users\Admin\Desktop\NRateBoard\abc1fev.csv (To Export the file)

AD:

  1. Login to the AD Server
  2. Open Poweshell and use this command.
    Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name, passwordlastset, passwordneverexpires | Export-csv -path c:\temp\user-password-info-20131119.csv

Leave a Reply

Your email address will not be published. Required fields are marked *