Advertisement
PC_Aide

Change hostname in commands or GUI.bat

Feb 2nd, 2019
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.74 KB | None | 0 0
  1. ::&----------------------------------------------------------------------------------------------------------------------
  2. ::
  3. :: rename don't take (format) -> minus(-), space,
  4. :: After rename, need reboot -> command -> shutdown /r /f /t 0
  5. ::
  6. ::&----------------------------------------------------------------------------------------------------------------------
  7.  
  8. ::cmd (mp4 -> https://www.youtube.com/watch?v=ngIdaQzpUZ4)
  9. wmic computerSystem where caption='%computerName%' rename SequenceV51
  10.  
  11. ::Powershell (mp4 -> https://www.youtube.com/watch?v=ArVeQapkPGY&t=10s)
  12. Powershell rename-computer -computerName $env:computerName -newName Sequencer-V51
  13.  
  14. ::GUI (mp4 -> https://www.youtube.com/watch?v=z1vKHmHfgXI)
  15. sysdm.cpl --> Change --> new name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement