Solved

User Change Script for Logon

Posted on 2004-08-11
4
147 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
4 Comments
 
LVL 10

Accepted Solution

by:
jhautani earned 125 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now