WiseScript Editor Reference
89
After you try to stop a service, the script pauses to give the service time to stop. The
currently logged-in end user must have the appropriate privileges to start and stop
services.
To complete the dialog box
z
Service Name
Enter the name of the service. This is not necessarily the same name you see in the
Services control panel, but is the services internal name. If you used the Create
Service action to create the service, this is the same name you entered in the
Create Service Settings dialog box.
z
Operation
Select to start or stop the service.
Example: Suppose a service must be stopped before it can be updated. Use this action
to first stop the service, then update its files.
See also:
Create Service
on page 50
While Statement
This action begins a While loop. An End Statement must end the loop. As long as the
condition specified in the While Statement Settings dialog box is true, the script lines
inside the loop execute repeatedly. If the condition is not true, then the While loop is
exited, and the next script line is executed.
To create a While loop
1. Add a While Statement and complete the dialog box:
While Variable
Select a variable from the first drop-down list, and a comparison method from
the second drop-down list.
Expression True means the expression in the Value field below is evaluated
according to the rules outlined in
Variables and Expressions
on page 28. The
variable is ignored and can be left blank. The result is considered true if it
evaluates to a non-zero result.
(The password comparisons are not applicable in this product.)
The Value
Enter the value to be used in the comparison, or an expression if the
comparison is set to Expression True. If you enter variable names in this field,
do not surround them with percent signs (%). If you enter compiler variables,
then you must surround them with percent signs.
Perform While loop at least once
Mark this so the loop executes once before the test is performed. If the check
box is cleared, the loop is executed if the condition is true, but is not executed if
the condition is false.
2. Below the While Statement, add one or more actions to perform if the variable has
the specified value.
3. Add an End Statement.
Summary of Contents for ALTIRIS INVENTORY 7.0 SP2 - FOR NETWORK DEVICES V1.0
Page 1: ...WiseScript Editor Reference ...
Page 31: ...WiseScript Editor Reference 31 ...
Page 91: ...WiseScript Editor Reference 91 ...
Page 148: ...WiseScript Editor Reference 148 ...