Articles on: VPS Management

How to Change the Default Administrator Username in VPS

For enhanced security, it is recommended to change the default administrator username on your VPS. This guide will walk you through the necessary steps to modify your username.



  1. Launch PowerShell with administrative privileges. In the Windows Search bar, type PowerShell, right-click the application, and then click Run as administrator.




  1. With PowerShell open, execute the following command to change the username:



Rename-LocalUser -Name "CurrentUsername" -NewName "NewUsername"



  • Example: Let’s say your Current Username is Administrator and you wish the new one to be arif  the code you would run is:



Rename-LocalUser -Name "Administrator" -NewName "arif"




  1. Upon successful execution, PowerShell will return to the command prompt without displaying an error message. Restart your VPS/dedicated server for the changes to take effect. You will then use the new username to reconnect.



Important: It is critical to remember your new administrator username. While we can reset the password for your Windows VPS, recovering a forgotten username requires either a complete operating system reinstallation.


Updated on: 12/08/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!