Instructions to change Windows 10 password with PowerShell

Instructions to change Windows 10 password with PowerShell


There are many ways to change a Windows 10 password and in this article Taimienphi.vn will introduce you to one of the useful tools to change that password is to change Windows 10 password with PowerShell, and follow directions. The following guide is for exactly how it works.


Windows 10 is a multi-function operating system with lots of support tools as well as a lot of additional tools that users have not been able to discover yet. With instructions to change Windows 10 password with PowerShell, we will learn one more use of Powershell, one of the most useful tools and also an improved version with more power than the Command Prompt.

How to change your Windows 10 password with PowerShell

Instructions to change Windows 10 password with PowerShell

Step 1: Any Windows 10 has Powershell, to open Powershell we just need to turn on StartMenu up then type Powershell is out, but readers note that to change the Windows 10 password with PowerShell we have to open Powershell with Admin rights >> ie to choose Run as Administrator.

guide to windows 10 state powershell 2

Step 2: Immediately Powershell interface with Admin rights appears, here you type the command Get-LocalUser let the system list all the available Users on your Windows 10 computer.

guide to windows 10 state powershell 3

The list of Users appears, here you see the column Enabled value display True or False. If the display False means that the account is not activated and True means activated and in use.

guide to windows 10 state powershell 4

Step 3: To proceed with changing the Windows 10 password with PowerShell with the new password now we only need to enter the following command:

$ Password = Read-Host “Enter the new password” -AsSecureString

guide to windows 10 state powershell 5

Step 4: After typing Enter, proceed to enter the password you want to set and then press Enter to finish the command.

guide windows 10 powers powershell 6

Step 5: Has that changed the Windows 10 password with PowerShell? Of course not yet because we still have to assign that new password to Windows 10 account on your computer by entering the command

$ UserAccount = Get-LocalUser -Name “Computer user name”

guide to windows 10 state powershell 7

After finishing the command type continue $ UserAccount | Set-LocalUser -Password $ Password, this command allows you to change your Windows 10 password with the PowerShell we assigned above.

guide to windows 10 state powershell 8

After the above operation, we just need to close Powershell, restart the computer, we can try to see if changing Windows 10 password with PowerShell has been really successful.

The above is a guide on how to change Windows 10 password with PowerShell, with instructions for changing Windows 10 password using the method of Powershell, again a good feature of Powershell is updated to our knowledge. Indeed, in addition to changing the Windows 10 password, Powershell also does a lot of different things, with those who are passionate about discovering computers, it is definitely impossible to ignore a good trick like this.

https://thuthuat.taimienphi.vn/huong-dan-doi-mat-khau-windows-10-bang-powershell-43899n.aspx
For those who are passionate about computers, want to learn more about Powershell, how PowerShell commands are used can refer to this article, our introduction to PowerShell commands or on Windows computers ten.

.

Related Posts

Leave a Reply

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