Would you like to learn how to rename a computer using Powershell? In this tutorial, we are going to show you how to rename a computer on Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Rename a computer
As an Administrator, start an elevated Powershell command-line.
Display the computer name.
Here is the command output:
Rename the local computer using Powershell.
Restart the computer.
Optionally, rename and restart the computer using a single command.
In our example, we changed the name of a local computer to TECH-DC01.
Rename a remote computer using Powershell.
Rename a remote computer using WinRM and Powershell.
Enter a credential with administrative permissions.
Verify if the remote computer was renamed.
Rename a remote computer using a stored credential.
There are multiple ways to use Powershell, WinRM, and a stored credential.
Congratulations! You are able to rename a computer using Powershell.