I am trying to write a batch file that will delete a registry key because at work our regedit is disabled. So far i am able to get cmd to open and but then it prompts me if im sure i want to delete the reg key. How do i get a y and enter to get filled in automatically? here is what i have so far.
@echo
REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools
exit
@echo
REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools
exit