ratelesno.blogg.se

Windows 7 last logged on user
Windows 7 last logged on user





windows 7 last logged on user

Windows 7 is a little more complicated, as it also requires a domain, so we also have to prompt the user for the domain. Another thing to note is that XP and Windows 7 store this information in a different location in the registry-ĮCHO Windows Registry Editor Version 5.00 > change.regĮCHO > change.regĮCHO "DefaultUserName"="%username%" > change.regWindows 7 reg file consisting of three lines of text- a title line, a registry location, and a key containing the name of the user. Set /p username=Please enter the name you want to appear as last logged on:I now need to create a. Every user that logs on creates a folder in here with their username as the title so the folders in here should be a definitive list of everyone who has ever logged onto this computer- should is the operative word here, because due to a number of situations it may not be accurate so its more of a handy guide than anything-ĭir /wI can now prompt the user for the name using a 'set' command. Now, displaying a list of usernames is much harder- the best I can do is to display the folder contents of 'documents and settings' or 'users'.

windows 7 last logged on user

Create a registry file with that user.įirst I need to create a set command to allow the user a choice of operating systems.

windows 7 last logged on user windows 7 last logged on user

Prompt the user for the name they wish to set as the last logged on user.Ĥ. Prompt the user for the operating system version.ģ. Here is a check list of what I want the script to do-ġ. One thing to note is that XP and Windows 7 store this information in a different location in the registry, so the first thing I have to do is find out which one I'm working with and split my batch file up accordingly. I'll run though all of the steps required at a basic level so if you know what your doing you can skip the basics and if you're really lazy the full script is available at the bottom.







Windows 7 last logged on user