Change account type for local users from Administrator to Standard user

Hi Comodo,

I am looking for a script to change a specific local user (not all local users) from administrator to standard user.

Thank you

@IT-Tech ,

Will this procedure suffice your request? https://scripts.itarian.com/frontend/web/topic/deletion-of-users-from-admin-group

Hi @Jimmy ,
Thanks for the fast response. Somehow I overlooked that. There is a small type in the procedure though.
Change:
‘net localgroup administrators’+user+’ /delete’).read()

to this and it works:
‘net localgroup administrators ’ +user+’ /delete’).read()

regards

@IT-Tech ,

Thank you for spotting this detail. We have relayed this info to our Scripts team and will update it from the backend accordingly. :slight_smile: