Page 1 of 1 1
Topic Options
#25274 - 2002-07-17 05:22 PM Concurrent logins
jessie27 Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 6
Loc: Indiana
Hello! I am new to the post, so please forgive me in advance if I forget something. I am using a script to prevent concurrent logins on an NT 4 network. I have limited my sample user to 3 logins on his homeshare. I would like the script to display a message box and then automatically log the user out if they do not have a mapped homeshare, which he won't after 3 logins. I can log in after three times with no homeshare, but I do not get a message box and it doesn't automatically log me out.
Here is the script:

set kxrpc=\\test\netlogon
use h: @homeshr
if @error<>0
messagebox ("Please log off all other workstations. Thank you.","",16)
run "\\pdc\netlogon\wcontrol.exe"
;run "c:\windows\system\wcontrol"
endif

Can anyone tell me what I am doing wrong?

Thank you for any help or suggestions.

Top
#25275 - 2002-07-17 05:44 PM Re: Concurrent logins
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jessie,

Welcome to the board!

Have a look at - http://www.jsiinc.com/sube/tip2200/rh2290.htm

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#25276 - 2002-07-17 06:04 PM Re: Concurrent logins
jessie27 Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 6
Loc: Indiana
Thank you for the website. I have the program to log them out, though. That is the wcontrol. It is a program that is Visual Basic. We rewrote it to work in kixtart.
Top
#25277 - 2002-07-17 06:06 PM Re: Concurrent logins
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jessie,

Can you share this code with the Kixtart Community?

Thanks!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#25278 - 2002-07-17 06:07 PM Re: Concurrent logins
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
What is the problem with using LOGOUT(1) ?
_________________________
There are two types of vessels, submarines and targets.

Top
#25279 - 2002-07-18 03:00 PM Re: Concurrent logins
jessie27 Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 6
Loc: Indiana
Hi Kent! The guy that wrote wincontrol has updated his version for kixtart. Here is the web address where you can download it:

http://keith.lbox.org/software.shtml?Software=Windows#Windows%20Control

Thanks!

Jessie

Top
#25280 - 2002-07-18 03:01 PM Re: Concurrent logins
jessie27 Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 6
Loc: Indiana
Hi Jens! Logout did not work either. It just continuously logged me out no matter what.

Thanks!

Jessie

Top
#25281 - 2002-07-18 03:20 PM Re: Concurrent logins
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
That is what is supposed to do [Confused]

As far as I can see, WControl does exactly the same, it logs the user out [Confused]
_________________________
There are two types of vessels, submarines and targets.

Top
#25282 - 2002-07-18 03:33 PM Re: Concurrent logins
ElGuapo Offline
Starting to like KiXtart

Registered: 2002-06-19
Posts: 100
Limit the home directory to 3 (or whatever number you want) concurrent connections. In the Kixscript, if they do not map the home directory (because of too many share connections), then log them off.
Top
#25283 - 2002-07-18 05:53 PM Re: Concurrent logins
jessie27 Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 6
Loc: Indiana
Hi Jens!

I know that it is supposed to log me out, but I am only telling it to run wincontrol if it doesn't see the homeshare. It logs me out no matter what I tell it.

Thanks!

Jessie

Top
#25284 - 2002-07-18 05:55 PM Re: Concurrent logins
jessie27 Offline
Fresh Scripter

Registered: 2002-07-17
Posts: 6
Loc: Indiana
Hi ElGuapo!

I already limited the user to 3 logins.

Thanks!

Jessie

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
0 registered and 696 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.061 seconds in which 0.025 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