Problem with batch file command to edit registry


  1. Posts : 5
    Windows 7 Pro 64-bit
       #1

    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 Computer


  2. Posts : 5
    Windows 7 Pro 64-bit
    Thread Starter
       #2

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 17:58.
Find Us