Trying to Download user list with Last Password Change Date Time

Nick Marchese 20 Reputation points
2023-03-08T17:06:45.58+00:00

Hi there. On Azure Active Directory User List, there is a column for Last Password Change Date Time. Unfortunately, I can't figure out how to export this in a report or excel file. Any tips? Clicking Download Users does not provide this field although I can see it in the interface. I'd like to do this with Azure and not run a command on the server. Thanks!

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,836 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Harpreet Singh Matharoo 8,356 Reputation points Microsoft Employee
    2023-03-09T07:43:26.1033333+00:00

    Hello @Nick Marchese

    Thank you for reaching out. I would like to confirm that currently Azure AD Admin or Office 365 Admin Center do not support exporting Last Password Change Date Time details. However, you can use following PowerShell commands to export these details in CSV.

    Connect-MsolService
    Get-MsolUser -All | Select-Object UserPrincipalName,LastPasswordChangeTimestamp | Export-Csv -Path "C:\LastPasswordChangeTimestamp.csv" -NoTypeInformation
    

    Above script will retrieve all users from Azure AD and select the UserPrincipalName and LastPasswordChangeTimestamp properties.

    I hope this answer helps to resolve your issue.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. Ben Childs 0 Reputation points
    2024-08-16T17:11:57.3633333+00:00

    Connect-MsolService : The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script file, or

    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

    again.

    At line:1 char:1

    • Connect-MsolService
    • 
          + CategoryInfo          : ObjectNotFound: (Connect-MsolService:String) [], CommandNotFoundException
      
          + FullyQualifiedErrorId : CommandNotFoundException
      
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.