Solved

xp login

Posted on 2004-10-13
8
147 Views
Last Modified: 2013-12-04
i have a account that is used in the trainning lab. but soime users are using the account at other computers. is there any way i can have a script run at login that check to see if it is a tranning pc and if not it logs the user out i have about 60 tranning pc's.
0
Comment
Question by:jmaglapit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 3

Expert Comment

by:_anom_
ID: 12301561
Open the user in active directory, go to the account tab, and click the log on to... button

there you should be able to restrict what computers it can log on from

Cheers
0
 

Author Comment

by:jmaglapit
ID: 12302259
i have 800 pc in the building is there a script that run on login
0
 
LVL 3

Expert Comment

by:_anom_
ID: 12302588
A script that ran at logon wouldnt be as effective as the method i gave above, just go into active directory and change their account to only allow access from the specified pcs.
0
2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

 

Author Comment

by:jmaglapit
ID: 12302714
i have seen it before.  it work fine
0
 

Author Comment

by:jmaglapit
ID: 12307703
can anyone else help
0
 
LVL 3

Accepted Solution

by:
Gargantubrain earned 500 total points
ID: 12339810
The log on to restriction is your best solution (see my note about cached credentials). If you insist on a logon script, then the following script would work. Assign this script to the user. Make sure the script is copied to your sysvol/domain/scripts directory on all domain controllers.
Please note that it might be possible for the user to log in once and see that the script logs them out, then unplug their network wire and log in again using "cached credentials" and not receive the login script, then plug their network wire back in.
Note also that shutdown.exe is not included with windows and is from the NT resource kit. There are different versions of it and one of them has the -l option to logoff.

script follows:
@echo off
if "%computername%" == "labpc1" goto THEEND
if "%computername%" == "labpc2" goto THEEND
if "%computername%" == "labpc3" goto THEEND
if "%computername%" == "labpc4" goto THEEND
if "%computername%" == "labpc5" goto THEEND
(keep going for all labpc comptuer names)

shutdown -l

:THEEND

0
 
LVL 3

Expert Comment

by:Gargantubrain
ID: 12339888
In Windows 2000 and XP there is a built-in "logoff" command you could try instead of shutdown -l

The Microsoft Windows NT Server 4.0 Resource Kit Supplement 4 also contains logoff.exe if you need it for systems without it built-in
0
 
LVL 3

Expert Comment

by:Gargantubrain
ID: 12339907
Here is a page that tells how to do a logoff in various operating systems, and includes a link to PSShutdown on Sysinternal's site...

http://www.robvanderwoude.com/shutdown.html
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question