Another question...
I started using the SERVICEMODE() udf but am a LITTLE confused about the syntax...

The readme says
;SYNTAX SERVICEMODE(SERVICENAME [,STARTUPMODE])
and
;EXAMPLE $mode=SERVICEMODE('service','automatic')

I tried this...
Code:
 IF $mode=SERVICEMODE('Altiris Agent','Disabled')
SERVICEMODE('Altiris Agent','Automatic')
EndIF


But it did nothing, I am probably using the syntax and examples wrong... I also tried just a simple
Code:
 SERVICEMODE('Altiris Agent','Automatic')


without any other logic but this did nothing either...
What I am aiming at here is to simple set the service to Automatic if it is set to disabled. I did check my registry to make sure I have the exact right name of the service.