Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This script will take affect after restart
$NewName="windowsserver"
$ComputerInfo = Get-WmiObject -Class Win32_ComputerSystem
$ComputerInfo.Rename($NewName)
Restart-Computer
Comments
- Anonymous
April 20, 2016
after i ran the command i got the error message ReturnValue: 5. the user is added in local administrator group.