Windows/rename a computer

Renaming a Windows computer from a remote console:

netdom.exe renamecomputer oldcomputername /newname:newcomputername /userd:yourdomain\administrator /passwordd:yourpassword /usero:yourdomain\administrator /passwordo:yourpassword /force >> c:\renamelog.txt