giveCurrentUserAdminRights()
Adds the current user on the agent machine to the local administrator’s group on the agent machine, either permanently or for a temporary period of time. This change does not take effect until the user logs off. It is recommended you leverage the logoffCurrentUser() step.
Operating systems supported: Windows
Example
giveCurrentUserAdminRights(10, false, "All Operating Systems", "Halt on Fail")
logoffCurrentUser(" ", "All Operating Systems", "Halt on Fail")