Set-LocalUser -Name "Administrator" -Password (Read-Host -AsSecureString). Both work on Windows Server 2019, 2022 and 2025, and the new password applies at your next sign-in.
Before you start
- Sign in with Remote Desktop or the VNC console.
- Pick a long, unique password (16 characters or more) and save it in a password manager before you change it.
- If you have forgotten the current password on a VPS, use Reset Password in the VPS Panel instead. On a dedicated server, open a ticket.
How to change the password in a Remote Desktop session
Pressing Ctrl+Alt+Del on your own computer goes to your own PC, not the server. In a Remote Desktop window, Ctrl+Alt+End opens the server’s Windows Security screen instead (Microsoft Learn).1
Open Windows Security
Click inside the Remote Desktop window and press Ctrl+Alt+End.
2
Choose Change a password
Select Change a password. The account name is filled in for you.
3
Enter the passwords
Type the old password, then the new password twice, and press Enter.
4
Confirm
Windows confirms the change. Select OK to return to the Windows Security screen, then Cancel.
How to change the Administrator password with PowerShell
Open PowerShell as administrator: select Start, typePowerShell, right-click Windows PowerShell and choose Run as administrator. Then run:
Read-Host -AsSecureString hides what you type, so the password doesn’t appear on screen or in your PowerShell history (Set-LocalUser on Microsoft Learn). Replace Administrator with another account name, such as alex, to change that user’s password.
On Server Core, choose option 15 in SConfig to get to a PowerShell prompt first.
How to change it with net user (Command Prompt)
* makes Windows prompt for the new password and hide it as you type (net user on Microsoft Learn). Avoid typing the password directly after the user name, because it then appears on screen.
How to check it worked
- Sign out of the server (don’t just close the window).
- Connect again with Remote Desktop and sign in with the new password.
- Update the password in any saved RDP connection and in your password manager.
PasswordLastSet shows today’s date and time.
What makes a good Administrator password?
- Long: 16 or more characters. Length helps more than symbols.
- Unique: never reused from another site or server.
- Not the account name: Windows’ complexity rule rejects passwords that contain the user name (Microsoft Learn).
Frequently asked questions
Windows says the password doesn’t meet the policy requirements. What now?
Your server enforces a minimum length, complexity or password history. Choose a longer password that mixes upper case, lower case, numbers and symbols and that you haven’t used on this server before.Can I change the password if I forgot the current one?
Not from inside Windows without another administrator account. With a second admin account, run theSet-LocalUser command above while signed in as that user. On a VPS, Reset Password in the VPS Panel sets a new Administrator password and emails it to you.
Should I rename or disable the Administrator account?
Renaming it (Rename-LocalUser -Name "Administrator" -NewName "srvadmin") makes guessing harder. Create and test a second administrator account first, so you can’t lock yourself out. See add a Remote Desktop user.
Related guides
VPS and dedicated server guides
Every guide in this section.
Add a Remote Desktop user
Create a second account for RDP.
Protect RDP from brute force
Lockout policy and IP limits.
Fix a locked-out account
When too many wrong passwords block sign-in.
Reset the password in the VPS Panel
When you no longer know it.
Checked against Microsoft Learn: Set-LocalUser, net user and Remote Desktop shortcut keys on 4 November 2026. Not tested on a live Windows server for this page; dialog wording can differ slightly between Windows Server 2019, 2022 and 2025.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: November 2026