Solved

User Change Script for Logon

Posted on 2004-08-11
4
149 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
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need to recover old Windows backup files in Windows 7 6 664
Closing cmd window after script execution 4 304
Windows Foriegn Disk 3 136
Can you expand C: in Windows 2000? 5 134
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…
Knowing where your website is hosted is as important as the features you receive, the monthly fee, and the support you receive. Due diligence should be done when choosing your next hosting provider.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

773 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