Change Name PC on windows 11 with error “the following error occurred validating the name”
- Open Windows PowerShell in Admin mode. To do that, search for “powershell” in the Windows Search bar and select “Run as administrator“.
- Now copy+paste the following command and press Enter:
Rename-Computer -NewName "xyz"
. Restart your PC for the change to take effect.
Note: Like the Command Prompt method, replace “xyz” with the name of your choice.