Change computer name using command line

With this you can change computer name using Terminal or command Line, it doesn’t matter if is a domain computer or not

wmic COMPUTERSYSTEM where name="Original_name" call rename name="New_name"

 
If it’s ok you’ll get something similar than this:

instance of __PARAMETERS
{
ReturnValue = 0;
};

 

That’s all, take in mind that you can change to a remote computer executing commands thru a PsExec

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.