Modify a REG_SZ entry in the registry using batch file

Posted on 2011-10-13
Last Modified: 2012-05-12
Hey guys,

I feel noob.

How can Modify a registry REG_SZ key with a value of nothing ?

"HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\Symantec Endpoint Protection\SMC\SYLINK\SyLink"

In there there is a REG_SZ entry with a value in it , i want to reset that value to nothing with a batch file.

Question by:WBGames
    LVL 3

    Expert Comment

    see example

    reg add HKLM /v MyTest /t REG_SZ /f
    LVL 3

    Expert Comment

    btw, that commmand line will delete the date of the value MyTest located in the HKEY_LOCAL_MACHINE
    LVL 3

    Accepted Solution

    reg add "HKLM\SOFTWARE\Symantec\Symantec Endpoint Protection\SMC\SYLINK" /v SyLink /t REG_SZ /f
    LVL 1

    Author Closing Comment


    One thing the /v was HardwareID since it's he key I wanted to reset :)

    Thanks again!

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
    Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now