Removing local admin rights from logged in user in a batch file from KACE

I'm helping out a new KACE admin work on something while our usual KACE admin is out on paternity leave.

We need to remove local admin rights from all the currently logged-in users.

We are using this command in a KACE script

net localgroup Administrators %username% /DELETE

I've noticed that if I run that command from the desktop in a standard command window it fails. If I run that command in an elevated command window (Run As Administrator), the command works.

When running that script in KACE, it does nothing. I have a feeling it's because KACE is not running the batch file as administrator.

How do I get KACE to run a batch file as administrator? Please keep in mind that we are both pretty new to KACE and may need guidance. 

Thanks in advance.

1 Comment   [ + ] Show comment
  • Can you try to select the option "Run as all logged in users". After the command, there should be a message informing the user to sign-out so the admin rights are removed. You can put the logoff command after a window timeout to enforce the sign-out. - flip1001 1 month ago

Answers (1)

Posted by: kcijojo 1 month ago
Senior White Belt

I have the same question and I am also fairly new at KACE SMA.  Thank you for asking this.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ