Changing HOSTNAME on UCS

Hi,
is this script still working for UCS 4.2?

Stefan