Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Problem with batch file command to edit registry

09 Sep 2014   #1
jdwilliams

Windows 7 Pro 64-bit
 
 
Problem with batch file command to edit registry

reg add HTLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DontDisplayLastUserName /t REG_DWORD 00000001 /f

I am trying to hide all users at logon and I know this is where you change it but for some odd reason the syntax is wrong and I can not figure it out. Can someone please help me fix this?


My System SpecsSystem Spec
.
09 Sep 2014   #2
jdwilliams

Windows 7 Pro 64-bit
 
 

I figured it out all. My problem lied in a few small argument issues and missed quotation marks. For future references this is the correct syntax.

reg add "HTLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DontDisplayLastUserName" /t REG_DWORD /d 1 /f
My System SpecsSystem Spec
Reply

 Problem with batch file command to edit registry




Thread Tools




Similar help and support threads
Thread Forum
may have a batch file of this command?
each line, which is each command, is seperate, it would normally be typed in cmd, thanks netstop sppvc cd %windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform rename tokens.dat tokens.bar cd %windir%\system32 net start sppsvc slui.exe dont know how...
General Discussion
DOS command in batch file
Hey Guys, I have 3 DOS scripts that has to be merged into one .bat file . Basically i am trying to clean the temp files and getting the svn update and compiling and publishing the .net webapplication. below are my individual scripts. to clean the file : @echo off echo *** Deleting...
General Discussion
Trying to edit a batch file to run with a higher CPU priority
Hi guys, Long time reader, first time poster. I have a batch file, named lima.bat which has the following code in it: del *.bin setx GPU_MAX_ALLOC_PERCENT 100 setx GPU_USE_SYNC_OBJECTS 1 color 02
General Discussion
Edit Services with Batch File
Is there a way to make a batch file that will automatically change Services? My main goal here is to 1 click edit all the services I change from disable,automatic, and delayed. I use the same settings for the entire family that I am tech support for so it makes life easier. Anything I can do...
Performance & Maintenance
Batch File - For Command??
<This post has now been solved> Hi, Sorry if this is not the place but does anyone know how to do the following? I am trying to create a batch file to search a directory for a specified file type and list it in a text file then get the batch file to read that text file and copy all the...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:29.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App