Windows 10: "REG DELETE" from CMD prompt. Ran into a problem...

  1.    22 May 2018 #1

    "REG DELETE" from CMD prompt. Ran into a problem...


    Trying to use the following syntax from the cmd prompt:

    REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT /v <two words seperated by a space> /t REG_MULTIZ_SZ /d <a specific line of text contained within the reg_multi_sz string>


    what's the correct syntax since when I write the above I get a 'syntax error'?

    To clarify: the REG_MULTI_SZ string I'm trying to modify has a name comprised of two words separated by a space.

    Further: It contains multiple entries. I'm trying to delete one specific entry from within it.

    Even further: Even if it were to contain only one entry, I'm trying to delete that specific entry while leaving the actual REG_MULTI_SZ string in existence, but empty.
      My ComputerSystem Spec

  2.    22 May 2018 #2

    It dangerous to do this from the cmdline if you are unsure why cant you goto regedit and do it?
      My ComputerSystem Spec

  3.    22 May 2018 #3

    Samuria said: View Post
    It dangerous to do this from the cmdline if you are unsure why cant you goto regedit and do it?
    Automating a number of commands.

    Need to use the command line for this.

    I've got the necessary backups in place.
      My ComputerSystem Spec

  4.    22 May 2018 #4

    Sending abusive messages to people replying to your thread isnt the way to get a response or help from anyone if you cant conduct yourself in the proper manner please refrain from posting
      My ComputerSystem Spec

  5. TairikuOkami's Avatar
    Posts : 3,417
    10.6 Home 1809 x64
       22 May 2018 #5

    You do not need to delete it, when you add the new entry, it gets overwritten. Insert it between ""
    Code:
    reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f
    To make the empty entry, just input empty paragraphs ""
    Code:
    reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "" /f
    For the record, to delete entry:
    Code:
    reg delete "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /f
    You can also export reg key and convert it to bat via Reg Converter to find the correct syntax.
      My ComputerSystem Spec

  6.    23 May 2018 #6

    TairikuOkami said: View Post
    You do not need to delete it, when you add the new entry, it gets overwritten. Insert it between ""
    Code:
    reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *" /f
    To make the empty entry, just input empty paragraphs ""
    Code:
    reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "" /f
    For the record, to delete entry:
    Code:
    reg delete "HKLM\System\CurrentControlSet\Control\Session Manager" /v "BootExecute" /f
    You can also export reg key and convert it to bat via Reg Converter to find the correct syntax.
    Thanks a lot Tairiku! That's exactly the information I was looking for.
      My ComputerSystem Spec


 

Related Threads
So I updated to the CU over a week ago, and I noticed an odd change. The "Open command prompt here" option in the shift+right-click context menu has been replaced by "Open Windows Powershell here" instead. Powershell does not work with the apps I...
Is there any way to delete these system folders. I don't use them, and I never will. If I delete them though, they are simply re-created. Thanks
I've just upgraded to Windows 10 and when I use the file explorer, the "delete" and "cut" is missing from the context menu when I press right-click with mouse on the file and folder. Is there anyone that knows how to add these features into the...
Greetings. So, I would like to remove "Paste shortcut" and "Undo delete" from the right-click desktop menu. Wasn't able to locate either in the registry.
Hello how can I delete "saved password" and "form data" of microsoft edge manually ?! after too much search in google .... I trid to delete some value of the following registry address HKEY_CURRENT_USER\SOFTWARE\Classes\Local...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 01:33.
Find Us