Logonscript

  • Thread starter Thread starter hermie
  • Start date Start date
H

hermie

Hello

I like to know if it is possible to make a scriptfile that determines that a
user only can logon only one time? when it wants to connect on another pc a
warning message must say: you are already logged on another terminal? I have
windows 2000 server.


Herman
 
Hi,

Have you had a chance to look into this article?

Limiting a User's Concurrent Connections in Windows 2000 and Windows NT 4.0
http://support.microsoft.com/?id=237282

Hope it is informative.

Thanks
Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "hermie" <[email protected]>
| Newsgroups: microsoft.public.win2000.networking
| Subject: Logonscript
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <[email protected]>
| X-Complaints-To: (e-mail address removed)
| X-Abuse-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-Info: Otherwise we will be unable to process your complaint
properly.
| NNTP-Posting-Date: Thu, 04 Nov 2004 12:30:59 EST
| Date: Thu, 4 Nov 2004 13:27:35 -0400
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!news.alt.net!sjc1.usenetserver.com!news
usenetserver.com!fe61.usenetserver.com.POSTED!53ab2750!not-for-mail
| Xref: cpmsftngxa10.phx.gbl microsoft.public.win2000.networking:74644
| X-Tomcat-NG: microsoft.public.win2000.networking
|
| Hello
|
| I like to know if it is possible to make a scriptfile that determines
that a
| user only can logon only one time? when it wants to connect on another pc
a
| warning message must say: you are already logged on another terminal? I
have
| windows 2000 server.
|
|
| Herman
|
|
|
|
 
I take a look at it But I not have the resource kit. I heard it should be
possible too with a simple script?

Herman
 
Hi,

I found the following script for single logon limiting during my research.

@ECHO OFF
quser>user.txt
for /f "tokens=3" %%a in ('find /c "%username%" user.txt') do
set tssemaphore=%%a
if %tssemaphore% GEQ 2 (
del user.txt set tssemaphore= logoff
)
set tssemaphore=
del user.txt

I have not tested it, please test it before implementing in production
environment.

Hope it helps.

regards,
Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "hermie" <[email protected]>
| Newsgroups: microsoft.public.win2000.networking
| References: <[email protected]>
<[email protected]>
| Subject: Re: Logonscript
| Lines: 67
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <[email protected]>
| X-Complaints-To: (e-mail address removed)
| X-Abuse-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-Info: Otherwise we will be unable to process your complaint
properly.
| NNTP-Posting-Date: Mon, 08 Nov 2004 07:25:18 EST
| Date: Mon, 8 Nov 2004 08:22:38 -0400
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!prodigy.com!atl-c02.usenetserver.com!c0
3.atl99.usenetserver.com!news.usenetserver.com!fe61.usenetserver.com.POSTED!
53ab2750!not-for-mail
| Xref: cpmsftngxa10.phx.gbl microsoft.public.win2000.networking:74778
| X-Tomcat-NG: microsoft.public.win2000.networking
|
| I take a look at it But I not have the resource kit. I heard it should be
| possible too with a simple script?
|
| Herman
|
| | > Hi,
| >
| > Have you had a chance to look into this article?
| >
| > Limiting a User's Concurrent Connections in Windows 2000 and Windows NT
| 4.0
| > http://support.microsoft.com/?id=237282
| >
| > Hope it is informative.
| >
| > Thanks
| > Rashmi
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > --------------------
| > | From: "hermie" <[email protected]>
| > | Newsgroups: microsoft.public.win2000.networking
| > | Subject: Logonscript
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| > | Message-ID: <[email protected]>
| > | X-Complaints-To: (e-mail address removed)
| > | X-Abuse-Info: Please be sure to forward a copy of ALL headers
| > | X-Abuse-Info: Otherwise we will be unable to process your complaint
| > properly.
| > | NNTP-Posting-Date: Thu, 04 Nov 2004 12:30:59 EST
| > | Date: Thu, 4 Nov 2004 13:27:35 -0400
| > | Path:
| >
|
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
| >
|
sfeed1.ip.tiscali.net!news.glorb.com!news.alt.net!sjc1.usenetserver.com!news
| > usenetserver.com!fe61.usenetserver.com.POSTED!53ab2750!not-for-mail
| > | Xref: cpmsftngxa10.phx.gbl microsoft.public.win2000.networking:74644
| > | X-Tomcat-NG: microsoft.public.win2000.networking
| > |
| > | Hello
| > |
| > | I like to know if it is possible to make a scriptfile that determines
| > that a
| > | user only can logon only one time? when it wants to connect on another
| pc
| > a
| > | warning message must say: you are already logged on another terminal?
I
| > have
| > | windows 2000 server.
| > |
| > |
| > | Herman
| > |
| > |
| > |
| > |
| >
|
|
|
|
 
Back
Top