This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:windows:rename_pc [2017/09/01 08:37] gcooper created |
computing:windows:rename_pc [2021/09/14 10:54] (current) gcooper |
||
---|---|---|---|
Line 9: | Line 9: | ||
< | < | ||
wmic computersystem where caption=' | wmic computersystem where caption=' | ||
+ | </ | ||
+ | Then reboot to activate the new hostname: | ||
+ | |||
+ | < | ||
shutdown -r -t 0 | shutdown -r -t 0 | ||
+ | </ | ||
+ | |||
+ | WHS script: | ||
+ | |||
+ | < | ||
+ | Set objWMIService = GetObject(" | ||
+ | |||
+ | For Each objComputer in _ | ||
+ | objWMIService.InstancesOf(" | ||
+ | |||
+ | objComputer.rename " | ||
+ | Next | ||
</ | </ |