wrights:HasAdminRole

  • 5 August 2022
  • 0 replies
  • 0 views

Userlevel 2
Badge +2

This article is about the wrights:HasAdminRole Blend function.

wrights:HasAdminRole

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."
/>

 


0 replies

Be the first to reply!

Reply