Action to change the hostname

Hi,

I’m trying to write an actions script to change the hostname of a machine. can anyone help me to achieve that?

Regards
Vicky

Hi Vicky

https://bigfix.me/fixlet/details/716

// download freeware utility
prefetch compname.exe sha1:7ea62d7d32a18b6904b36501fb4cad573c99ed36 size:207872 http://www.willowhayes.co.uk/download/compname.exe
action parameter query "newcompname" with description "Please enter the new name for the computer (make sure name is valid)" with default value "NEWCOMPUTER"
waithidden cmd.exe /C __download\compname /c {parameter "newcompname" of action}
action requires restart
1 Like