I am trying to run a batch file at the end of the logon process which will automatically set "Do not display last username in logon screen" to DISABLE. I know how to do this via gpedit.msc, but would like to make it automatic using a command line in a batch file.
Can this be done? Using command lines to change group policy settings?
Any help appreciated.
![]() |
|
|||||||
| Windows XP/2000 - display last username via command line posted in the Operating Systems forums; I am trying to run a batch file at the end of the logon process which will automatically set "Do not display last username in logon screen" to DISABLE. I ... |
|
|
|
#1 |
|
New Poster
Join Date: Oct 2009
Posts: 2 PC Experience: Experienced
|
Last edited by samuria; 4 Weeks Ago at 12:11 AM. |
|
|
|
| Advertisement - Register to Remove | |
|
|
|
#2 |
|
Mod Team Leader
![]() Join Date: Dec 2005
Location: Skynet HQ (kinda near PCHF bunker)
Posts: 2,183 PC Experience: Learning more every day!
|
Hello Telios! Welcome to PCHF!
We have a fantastic team of techs here as well as a very knowledgeable member community and I am sure we will be able to help you ![]() I will mark your thread as open and someone will be with you as soon as possible, thank you for your patience. Regards, Smokeycheech
|
|
|
|
|
|
#3 |
|
Tech Support Team
![]() Join Date: Aug 2009
Posts: 623 PC Experience: PC Guru
|
Yep you can do that
You can set up the Do not display last user name by modifying one setting in your registry. Open the Registry Editor by going to your Start menu, clicking Run, typing regedit and hitting ENTER. Then locate the following registry entry: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Policies\System Change the value of the dontdisplaylastusername keyword to 1 export the reg key as a file and save it then run it in your batch file like so regedit.exe /s regfile.reg |
|
|
|
|
|
#4 |
|
New Poster
Join Date: Oct 2009
Posts: 2 PC Experience: Experienced
|
Thanks very much for the help. I knew it should be possible but didn't know how. Much obliged.
|
|
|
|
|
|
#5 |
|
Tech Support Team
![]() Join Date: Aug 2009
Posts: 623 PC Experience: PC Guru
|
Your welcome you know were to come next time. I will mark it as solved
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| command, command line, display, gpedit, last username, line, logon, Open:, Resolved:, username |
Similar discussions...
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| On line Command and Conquer and Chaos | iwearahalo | Unfinished Threads | 2 | 05-26-2007 01:03 PM |
| [Answered] Windows Defender Command Line | jakedude182 | Security Watch | 3 | 03-15-2007 06:32 PM |
| Accessing Command Line | troubled woman | Windows XP/2000 | 4 | 04-25-2006 09:18 PM |
| [Fixed] half-life command line | Assim | PC Games | 5 | 08-10-2005 10:40 PM |
| Thread Tools | |
| Display Modes | |
|
|





























Linear Mode

