Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

User Change Script for Logon

Posted on 2004-08-11
4
Medium Priority
?
154 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 500 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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…
Whoever said that “a picture is worth one thousand words” observed a fact that can dramatically affect your marketing success. Most people tend to learn visually, so many publishers commonly acknowledge the effectiveness of visual learning by using…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

719 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