wrights:HasAdminRole

Previous Next

Finds out if the script is being run with the Run As Administrator option or not.

Returns a boolean.

Syntax

wrights:HasAdminRole()

 

Example

To prevent a deploy script from being run otherwise than with the Run As Administrator option, add the following directive at the top of the script:

<pc:terminate test="not(wrights:HasAdminRole())" msg="This script must be run with the Run As Administrator option."/>