29 years in IT and I'm still learning.
Inside batch file, create the following command line to rename the current computer with a new hostname.
WMIC COMPUTERSYSTEM where name="%COMPUTERNAME%" CALL RENAME name="%NEWPCNAME%"
Need to restart computer to take effect.
!!! HAPPY COMPUTING !!!
No comments:
Post a Comment