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.
- Launch PowerShell with administrative privileges. In the Windows Search bar, type PowerShell, right-click the application, and then click Run as administrator.
- 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"
- 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.
Updated on: 12/08/2025
Thank you!