|
|
|||||||
Hi all How can I change the user’s access level in their workstations from administrator to restricted user with KiXtart logon script Thanks. |
||||||||
|
|
|||||||
This is about local users right? Usually you could just remove them from the local admin group. I'm not sure and cannot test right now but I guess that would be enough to get the radio button in control panel set. [edit] Just did a manual test (create a user and remove it from local admin group) and it seems to do the trick. [/edit] |
||||||||
|
|
|||||||
Something like this, but converted to KiX? Remove Domain Users from Local Administrators group I think the script would start like this. Code: If InGroup(@WKSTA+"\Administrators") ;code to remove user from local admin group EndIf |
||||||||
|
|
|||||||
And the part doing the work could be like this. Code: Shell '%comspec% /c net localgroup administrators accounttoremovegoeshere /delete' |
||||||||
|
|
|||||||
Thanks that works fine. |
||||||||
|
|
|||||||
The "accounttoremovegoeshere", is that @USERID? Code: Shell '%comspec% /c net localgroup administrators ' + @DOMAIN + '\' + @USERID + ' /delete' |