Page 1 of 1 1
Topic Options
#72276 - 2002-12-20 12:13 AM Howto: Disable/Enable Users W2K
Ashpoint Offline
Starting to like KiXtart

Registered: 1999-08-27
Posts: 192
Loc: Sydney, NSW, Australia
My client wants to Disable (some) users while he does some processes on the server W2K. Then, when completed, he want to Enable them again.

I searched the board and can't locate any reference to a Kix solution.

Can someone advise if it's possible and maybe point me in the right direction.

Top
#72277 - 2002-12-20 12:50 AM Re: Howto: Disable/Enable Users W2K
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Presumably by "disable" you mean deny logon?

You can do this simply by creating an ini file. Create an entry for each user you want to deny access and set the entry value ro "1" to deny acess, and "0" to allow it.

During login, check the ini file for an entry keyed by the user name. If present and not zero log the user off.

The problem with this solution is that it won't affect anyone who is already logged on, and it won't stop savvy users from manually making or reattaching remembered network connections. The best solution to that is to put all your "disabled" users into a disabled group, and set the permissions on your resources (shares, printers, whatever) such that they have no access while in the disabled group.

{edit}
You could also use membership of the disabled group to trigger the logoff rather than use the ini file.
{/edit}

[ 19. December 2002, 12:52: Message edited by: Richard Howarth ]

Top
#72278 - 2002-12-19 02:40 PM Re: Howto: Disable/Enable Users W2K
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
...building on Richard's suggestions...
  • create an 'unwanted' logon scriptlet that logs off a user (and optionally shuts down the workstation)
  • when an undesirable user logs on have your logon script call your 'unwanted' code
  • net result for the user is endless log on and log off and reboot cycle
  • somewhere in there you may want to give them some kind of explanatory message
_________________________
We all live in a Yellow Subroutine...

Top
#72279 - 2002-12-19 03:49 PM Re: Howto: Disable/Enable Users W2K
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Question:
Does your client want to prevent them from logging into the network or does he want to prevent the users to connect to a particular server via file/printer sharing?

Those are two different issues. Issue number one has been solved above.

Issue number two can be solved, too, by manipulationg the 'log on from network' rights on the particular server. Essentially, deny network logon for the specified time period to the specific users and they will still be able to log into the network but not able to access the blocked server.

[ 19. December 2002, 15:50: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#72280 - 2002-12-19 04:06 PM Re: Howto: Disable/Enable Users W2K
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Errr actually issue 2 was dealt with as well - see the fourth paragraph in my initial reply.
Top
#72281 - 2002-12-19 04:10 PM Re: Howto: Disable/Enable Users W2K
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Oops, true, read too fast. Anyway, I provided an alternative solution to issue 2.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 696 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.028 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

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