Powershell getting local user account passwordlastset date

[Deleted User][Deleted User] Senior MemberPosts: 0 ■■□□□□□□□□
Hello Fellow IT Pros!

I am working on a project that is requiring me to grab a particular user account and search when the password was last set. This is within powershell. I made one with the Get-ADUser cmdlet, however, I need it for the local user account along with the server hostname in the output. From my understanding, there is no cmdlet to get the local user account for Powershell correct? Is there a way I can get this information using a powershell cmdlet or any other way possible besides net user (username)?

This is what I have but I need a local user account version of this. Can anyone with in depth Powershell knowledge assist?

Get-ADUser -Filter {Name -eq "usernamegoeshere"} -Properties passwordlastset | ft Name,passwordlastset

Comments

Sign In or Register to comment.