Test if CurrentUser has Rights

Kirk Feathers
Kirk Feathers Member, Kaseya Certified CHOCOLATE MILK
edited January 2022 in Solutions

Product Name: Test if CurrentUser has Rights

Description : This procedures checks to see if the currently logged in user is a Local Administrator. It does not matter if the user or computer is Domain or not. If noone is logged in, it tests Last logged in user.

HOW
Procedures loads the localGroup Administrators into a variable then compares to see of currentUser is in there. If noone is logged in, it checks the LastUser

Instructions:
FIRST, Create a custom system information field Named "User Is Admin" (without the quotes) as Text. If you import before creating the field, you will need to edit lines 6,10,13,18,22,25 to select the correct customSysInfo

Instructions :

FIRST, Create a custom system information field Named "User Is Admin" (without the quotes) as Text.  If you import before creating the field, you will need to edit lines 6,10,13,18,22,25 to select the correct customSysInfo.


Next, Import the procedure and run it against any Agent.

Comments

  • mmat
    mmat Member, IT Pro CHOCOLATE MILK

    Hi,

    So i do test this procedure but i had difficulty to understand what is the meaning of "not complete", "did" & "never" in this particular procedure?