ssue is closed. Thanks for your help i just ran it as a shutdown script. i needed a reboot anyway after the install.

Thanks a million.