Solved

User Change Script for Logon

Posted on 2004-08-11
4
153 Views
Last Modified: 2010-04-14
We use several Windows 2000 Pro workstations  on a domain. We, the go-fors and do-its do not have the user domain passwords so we use a local administrator logon to update and maintain the machines.

When we log out, the user of the machine then finds our user info, administrator on local, in the logon box. They of course can't even begin to figure out how to logon. Some users seem unable to learn to type their user name in the box, their password and then to change to the domain logon--even after several "trainings."

Anyways, is it possible to use some kind of script or other method to switch the logon screen to the assigned person's user info from the default last logged on info?

Thanks in advanced.
0
Comment
Question by:kchrisc
[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
4 Comments
 
LVL 10

Accepted Solution

by:
jhautani earned 125 total points
ID: 11783422
Create a batch file (setuser.cmd) with the following lines:
@echo off
  if !%1!==!! goto err
  if !%2!==!! goto err
  set olduser="%1%"
  set olddom="%2%"
  echo Changing logon screen info to
  echo user:   %olduser%
  echo domain: %olddom%
  echo REGEDIT4 > c:\setuser.reg
  echo. >> c:\setuser.reg
  echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> c:\setuser.reg
  echo "DefaultUserName"=%olduser% >> c:\setuser.reg
  echo "DefaultDomainName"=%olddom% >> c:\setuser.reg
  regedit c:\setuser.reg
  del c:\setuser.reg
  goto :end
  :err
  echo Usage: setuser USER DOMAIN
  :end

Run it on client with two parameters: user and domain, which you have memorized (written down to a Post-It note ;)) before you logged on

hope this helps
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

630 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