Share via

Powershell Get computer password

Filip 831 Reputation points
2021-03-19T20:57:32.343+00:00

Hello everybody.
Can i somehow get my computer password by using powershell?
Thanks for answare.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

Answer accepted by question author

Rich Matheisen 48,116 Reputation points
2021-03-19T21:29:43.75+00:00

Do you mean the password used by your computer that's kept in the Computer object in the Active Directory? Or are you asking how to get you local account password so you can log on to your computer?

If it's the AD Computer object's password the answer is that you cannot. The password's encrypted. You can, however use the Reset-ComputerMachinePassword cmdlet.

Nor can you "get" a local user account password, which is also encrypted.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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