Delete Registry Entry

Bob Collison
Bob Collison used Ask the Experts™
on
Hi Experts I have the following code in a .reg file to add a Registry Entry.

What is the code to 'delete' (reverse) the addition?  i.e Turn it Off.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location9]
"Path"="C:\\Users\\Public\\SASInstall\\"
"AllowSubfolders"=dword:00000001
"Description"="SAS Install"
"Date"="2016-10-10 17:55"

Thanks,
Bob C.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Edward PamiasTeam Lead RRS Desk
Top Expert 2016
Commented:
This site includes all the relevant codes on how to delete the entry.

https://technet.microsoft.com/en-us/library/cc742145(v=ws.11).aspx
Commented:
Read the lower part of this MS article: https://support.microsoft.com/en-us/help/310516/how-to-add,-modify,-or-delete-registry-subkeys-and-values-by-using-a-.reg-file
header is Deleting Registry Keys and Values
RaminTechnical Advisor

Commented:
I think you can also do it  with Registrar Registry Manager.
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Technical Specialist
Awarded 2017
Distinguished Expert 2018
Commented:
You can use REG.exe
REG.exe DELETE "HKCU\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location9" /f

Open in new window

Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
Glad we could help.
Please remember to endorse my, or any other expert's comments that you found helpful by clicking on the "Thumb's Up" button
Bob CollisonSystem Architect

Author

Commented:
Thanks for the info.  I wasn't aware of this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial