Page 1 of 1 1
Topic Options
#180921 - 2007-09-27 09:13 PM Changing the user’s access level in their workstations
Adolfo Offline
Fresh Scripter
*****

Registered: 2007-01-25
Posts: 49
Loc: Cali, CO
Hi all

How can I change the user’s access level in their workstations from administrator to restricted user with KiXtart logon script

Thanks.


Edited by Adolfo (2007-09-27 09:14 PM)

Top
#180923 - 2007-09-27 09:18 PM Re: Changing the user’s access level in their workstations [Re: Adolfo]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
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]


Edited by Mart (2007-09-27 09:23 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#180924 - 2007-09-27 09:33 PM Re: Changing the user’s access level in their workstations [Re: Mart]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
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

Top
#180925 - 2007-09-27 09:41 PM Re: Changing the user’s access level in their workstations [Re: Witto]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
And the part doing the work could be like this.

 Code:
Shell '%comspec% /c net localgroup administrators accounttoremovegoeshere /delete'
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#180926 - 2007-09-27 09:57 PM Re: Changing the user’s access level in their workstations [Re: Mart]
Adolfo Offline
Fresh Scripter
*****

Registered: 2007-01-25
Posts: 49
Loc: Cali, CO
Thanks that works fine.

Edited by Adolfo (2007-09-27 10:41 PM)

Top
#180927 - 2007-09-27 11:18 PM Re: Changing the user’s access level in their workstations [Re: Adolfo]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
The "accounttoremovegoeshere", is that @USERID?
 Code:
Shell '%comspec% /c net localgroup administrators ' + @DOMAIN + '\' + @USERID + ' /delete'

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.054 seconds in which 0.021 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org