PowerShell Change Hostname

Rename-Computer -NewName 'SomeHostname' -Restart
Plain Partridge