Rename a Windows computer using command line powershell Feb 18, 2014 • 1 min read Edit netdom renamecomputer "$env:COMPUTERNAME" /Newname "myname"