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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 44,776 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.

    0 comments No comments

0 additional answers

Sort by: Most helpful