How to change password Local Administrator or Domain in Windows Server (PowerShell Via)

Windows Articles

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...

Hello! The use of a password is a common mechanism to increase security on Windows Server. Of course, this password must meet certain security parameters to be secure. Additionally, after some time it is likely that you will want to change it. Indeed, these changes can be implemented to the local or domain administrator. Additionally, a correctly configured password makes it more difficult to compromise the security of the server. However, there comes a time when it is advisable to modify these values. For this reason, today we will see how to do it using the Windows Server PowerShell. Come with me to see how to change password Local Administrator or Domain in Windows Server (PowerShell Via)

How to change the Local Administrator password using PowerShell

The first thing you have to do is open a PowerShell console as an administrator. You have two options for this:

  • Press the Win+X combination or right click on the start button:
Open a PowerShell as an administrator.
Open a PowerShell as an administrator.
  • Access directly from the Windows Server start menu:
Run PowerShell from the Windows Server Start Menu
Run PowerShell from the Windows Server Start Menu

With the following command, we will set a new password. In addition, we will convert the new value into an encrypted string:

$NewPassword = ConvertTo-SecureString "AnotherPassword" -AsPlainText -Force
Changing the local administrator's password
Changing the local administrator’s password

Please remember to change the value “AnotherPassword” to the new password

How to change the password of a local user.

Then we will change the password of the local user. With this in mind, we will use the following command:

Set-LocalUser -Name Osradar1 -Password $AnotherPassword

Please note to replace User with the corresponding user name. In my case, the command would look like this:

Changing the local user’s password.

How to change Domain Administrator password using PowerShell

The procedure for changing the domain administrator password is as follows. Once again from PowerShell, run the following command:

Set-ADAccountPassword user -NewPassword $AnotherPassword –Reset

Again, replace User with account name. Additionally, update the new password.

Changing the domain administrator's password
Changing the domain administrator’s password

This is it! We have seen how to change password Local Administrator or Domain in Windows Server (PowerShell Via). On the other hand, by using PowerShell the procedure is faster and more expeditious. We hope that in this way, administrators can increase the security of their system. Okay, before I say goodbye, I invite you to see our post about enabling the remote desktop in Windows Server. So long!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...
x