Solved

User Change Script for Logon

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

735 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