Page 1 of 1

Delete registry subkeys

Posted: 09 Jan 2023 15:18
by Docfxit
I would like to delete four subkeys with Wordperfect in the key.
This is the bat file that is not working:

Code: Select all

(SET _KEY=SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001)

REG Delete "HKLM\%_KEY%" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\Autorun.exe" /f
REG Delete "HKLM\%_KEY%" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\English\\Setup.exe" /f
REG Delete "HKLM\%_KEY%" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro 194\\Update\\Update to v21.0.0.194.exe" /f
REG Delete "HKLM\%_KEY%" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\Crack Fix\\xf-corelkg.exe" /f

cmd /k
I did run the above bat file with "Run as Administrator"

This is the cmd window with the results:

Code: Select all

C:\Windows\system32>(SET _KEY=SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001 )

C:\Windows\system32>REG Delete "HKLM\SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\Autorun.exe" /f
ERROR: Access is denied.

C:\Windows\system32>REG Delete "HKLM\SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\English\\Setup.exe" /f
ERROR: Access is denied.

C:\Windows\system32>REG Delete "HKLM\SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro 194\\Update\\Update to v21.0.0.194.exe" /f
ERROR: Access is denied.

C:\Windows\system32>REG Delete "HKLM\SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001" /v "\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\Crack Fix\\xf-corelkg.exe" /f
ERROR: Access is denied.

C:\Windows\system32>cmd /k
This is the original registry key:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001]
"Version"=dword:00000001
"SequenceNumber"=dword:000000e7
"Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy"=hex:6f,33,58,89,db,\
  22,d9,01,00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.Windows.Search_cw5n1h2txyewy"=hex:4c,10,a9,d5,5f,24,d9,01,00,00,00,\
  00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy"=hex:bb,05,c0,46,1e,18,d9,\
  01,00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.WindowsStore_8wekyb3d8bbwe"=hex:38,ff,03,96,ea,21,d9,01,00,00,00,00,\
  00,00,00,00,01,00,00,00,02,00,00,00
"MicrosoftWindows.Client.CBS_cw5n1h2txyewy"=hex:e0,9a,2e,1a,fb,22,d9,01,00,00,\
  00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy"=hex:21,ca,a1,d2,db,22,d9,\
  01,00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"windows.immersivecontrolpanel_cw5n1h2txyewy"=hex:6e,c7,1d,b9,db,22,d9,01,00,\
  00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.Windows.SecHealthUI_cw5n1h2txyewy"=hex:a5,ef,bc,45,16,1f,d9,01,00,\
  00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.Windows.Photos_8wekyb3d8bbwe"=hex:34,63,86,59,9f,23,d9,01,00,00,00,\
  00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.XboxGamingOverlay_8wekyb3d8bbwe"=hex:86,a9,b9,18,7b,fc,d8,01,00,00,\
  00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.Windows.Apprep.ChxApp_cw5n1h2txyewy"=hex:0d,5d,53,81,c3,10,d9,01,00,\
  00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.BingWeather_8wekyb3d8bbwe"=hex:66,a3,cc,ed,87,21,d9,01,00,00,00,00,\
  00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.LockApp_cw5n1h2txyewy"=hex:ed,3e,88,91,18,b0,d8,01,00,00,00,00,00,\
  00,00,00,01,00,00,00,02,00,00,00
"Microsoft.WindowsCamera_8wekyb3d8bbwe"=hex:f1,60,9c,aa,df,6b,d8,01,00,00,00,\
  00,00,00,00,00,01,00,00,00,02,00,00,00
"microsoft.windowscommunicationsapps_8wekyb3d8bbwe"=hex:a5,c1,a5,49,5b,24,d9,\
  01,00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.ScreenSketch_8wekyb3d8bbwe"=hex:61,f1,02,95,0e,c3,d8,01,00,00,00,00,\
  00,00,00,00,01,00,00,00,02,00,00,00
"E046963F.LenovoCompanion_k1h2ywk1493x8"=hex:a4,af,8c,7c,58,13,d9,01,00,00,00,\
  00,00,00,00,00,01,00,00,00,02,00,00,00
"Microsoft.GetHelp_8wekyb3d8bbwe"=hex:10,c6,55,f9,df,6b,d8,01,00,00,00,00,00,\
  00,00,00,01,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\AnyTime Organizer\\atw.exe"=hex:c9,30,a6,\
  5b,b4,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\Mozilla Firefox\\firefox.exe"=hex:44,\
  0f,58,01,4b,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Salamander\\salamand.exe"=hex:d7,75,36,\
  59,58,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\Bitdefender\\Bitdefender Security\\bdagent.exe"=hex:a6,\
  60,01,a8,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\AnyDesk\\AnyDesk.exe"=hex:4f,eb,57,\
  95,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\Soft Organizer\\SoftOrganizer.exe"=hex:fc,\
  55,36,30,a4,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\rundll32.exe"=hex:f5,c5,bb,6f,\
  47,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Remind-Me\\RemindMe.exe"=hex:91,b7,3b,bd,\
  46,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\dllhost.exe"=hex:22,b9,47,ae,4a,\
  24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\MusNotificationUx.exe"=hex:43,\
  6d,43,24,8d,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"=hex:07,\
  25,6e,bf,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"AD2F1837.HPPrinterControl_v10z8vjag6ke6"=hex:72,51,fa,8c,62,24,d9,01,00,00,00,\
  00,00,00,00,00,01,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\cleanmgr.exe"=hex:11,87,30,66,\
  4c,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"LenovoCorporation.LenovoSettings_4642shxvsv8s2"=hex:fe,58,61,bf,54,12,d9,01,\
  00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00
"Windows.PrintDialog_cw5n1h2txyewy"=hex:df,de,bf,01,41,ee,d8,01,00,00,00,00,00,\
  00,00,00,01,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume3\\Programs\\VNCControl\\VNCControl.exe"=hex:b8,a2,d5,\
  95,e7,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\UltraVNC\\vncviewer.exe"=hex:d7,65,77,93,\
  e7,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\TinySpell+\\tinyspell+.exe"=hex:45,1f,64,\
  77,de,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\cmd.exe"=hex:2a,a5,0c,f2,60,24,\
  d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Moffsoft Calculator 2\\MoffCalc2.exe"=hex:8f,\
  f3,51,4d,1f,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Notepad++\\notepad++.exe"=hex:a1,17,d7,\
  ba,60,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Start Menu X\\StartMenuX.exe"=hex:48,1a,\
  f0,17,4b,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\explorer.exe"=hex:67,df,f1,89,db,22,d9,01,\
  00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\NetSetMan\\netsetman.exe"=hex:ba,\
  6c,13,c7,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Intuit\\QuickBooks 2020\\QBW32.EXE"=hex:92,\
  d2,fc,98,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\ApplicationFrameHost.exe"=hex:55,\
  17,0d,b9,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\ClipX\\clipx.exe"=hex:61,06,19,96,db,22,\
  d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"=hex:e9,\
  f6,40,9c,47,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Total Uninstall 6\\Tu.exe"=hex:4a,66,04,\
  c9,4a,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\WinSnap\\WinSnap.exe"=hex:3c,cd,62,b4,0b,\
  23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\OpenWith.exe"=hex:89,fe,69,79,\
  9e,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"Microsoft.WindowsCalculator_8wekyb3d8bbwe"=hex:ee,5a,e1,f1,bf,0e,d9,01,00,00,\
  00,00,00,00,00,00,01,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Lenovo\\SHAREit\\ShareitUpdater.exe"=hex:d4,\
  2b,70,5f,82,21,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\SysWOW64\\msiexec.exe"=hex:d8,51,00,d1,47,\
  24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\CCleaner\\App\\CCleaner\\CCleanerBugReport.exe"=hex:6d,\
  49,81,7d,24,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Sandboxie-Plus\\SandMan.exe"=hex:1c,8e,\
  13,8e,49,1e,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\K-Lite Codec Pack\\MPC-HC64\\mpc-hc64_nvo.exe"=hex:13,\
  5e,68,8c,9e,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Users\\Gary\\AppData\\Roaming\\Foxit Software\\Addon\\Foxit PhantomPDF\\FoxitPhantomPDFUpdater.exe"=hex:5e,\
  40,0a,ac,11,1e,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\notepad.exe"=hex:b2,ac,80,04,e1,\
  23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Common Files\\Intuit\\DataProtect\\IntuitDataProtect.exe"=hex:44,\
  77,72,97,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\mmc.exe"=hex:47,4b,bf,db,a0,23,\
  d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\shutdown.exe"=hex:3e,4a,e1,67,\
  db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\regedit.exe"=hex:a1,97,bb,b3,5c,24,d9,01,\
  00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Bit Che\\Bit_Che.exe"=hex:86,\
  73,f4,6f,fb,1f,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Users\\Gary\\AppData\\Roaming\\uTorrent\\uTorrent.exe"=hex:df,\
  3a,34,f2,55,20,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\IPVanish VPN\\IPVanish.exe"=hex:de,ba,05,\
  f8,55,20,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Windows Repair (All in One)\\Repair_Windows.exe"=hex:d6,\
  59,8d,33,63,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\SysWOW64\\cmd.exe"=hex:94,5d,8b,58,82,21,\
  d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\SysWOW64\\shutdown.exe"=hex:84,0a,9e,58,\
  82,21,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Windows Repair (All in One)\\WR_Tray_Icon.exe"=hex:8f,\
  cf,f0,f2,fa,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\wlrmdr.exe"=hex:dd,cc,70,96,db,\
  22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"=hex:12,\
  1f,84,54,f2,1e,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\Autorun.exe"=hex:3e,\
  96,66,ba,82,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\English\\Setup.exe"=hex:2e,\
  c5,13,27,2b,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro 194\\Update\\Update to v21.0.0.194.exe"=hex:8f,\
  d9,91,3c,18,1f,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume3\\Programs\\DAZzle\\DAZZLE.EXE"=hex:49,f3,a3,98,c7,\
  1f,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\RegAsm.exe"=hex:b2,\
  ef,5e,10,c7,1f,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\Taskmgr.exe"=hex:18,3b,d3,d4,9c,\
  23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\Unlocker\\Unlocker.exe"=hex:7d,9c,fa,90,\
  29,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\WordPerfect_Office_2021_Pro\\Crack Fix\\xf-corelkg.exe"=hex:b5,\
  52,bf,14,2a,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\temp\\{0362407D-5668-4275-A4A2-CF5F0C37F30D}\\.cr\\vc_redist.x86.exe"=hex:cb,\
  30,21,e6,4f,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume3\\Dnload\\hardware_identify_portable\\HardwareIdentify.exe"=hex:84,\
  dc,e1,35,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\TempInst\\is-5SV16.tmp\\IcService_New_n1dwv10w.tmp"=hex:38,\
  db,f1,02,db,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\Mozilla Firefox\\updater.exe"=hex:86,\
  9d,b2,0f,fb,22,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\ERUNT\\ERUNT.EXE"=hex:1e,e6,f5,f7,06,23,\
  d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\msdt.exe"=hex:fb,57,53,ba,26,23,\
  d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe"=hex:3e,a5,83,f4,5f,24,d9,01,00,00,\
  00,00,00,00,00,00,01,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\Revo Uninstaller Pro\\RevoUninPro.exe"=hex:9a,\
  06,b8,7e,27,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\PROGRA~1\\REVOUN~1\\ruplp.exe"=hex:fc,5c,48,10,27,\
  23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\temp\\{95A61F0B-5A03-434A-A51B-435769D3C247}\\.cr\\vc_redist.x86.exe"=hex:ce,\
  24,35,38,2a,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files (x86)\\Common Files\\Borland Shared\\BDE\\Cfg_BDE.exe"=hex:e4,\
  fa,24,d9,2a,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\temp\\{A8BEAB56-2776-4ABC-99DB-78399C9C4478}\\.be\\VC_redist.x86.exe"=hex:6c,\
  f2,c2,84,2a,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\temp\\{3F07C3C9-0272-4DC4-BE8B-C14EB7526731}\\.be\\VC_redist.x86.exe"=hex:ea,\
  70,c7,d7,2a,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\temp\\{4E449B94-080E-4A6B-AE7D-3B4EF0D1636D}\\.be\\VC_redist.x86.exe"=hex:7e,\
  1a,cc,20,2b,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Program Files\\VuePrint\\vueprint.exe"=hex:81,f8,\
  17,fd,e8,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\Macrium\\ReflectDLHF.exe"=hex:20,\
  a1,e0,ec,e5,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Dnload\\9xAddons\\Macrium\\v8.0.7175_reflect_setup_free_x64.exe"=hex:fa,\
  16,d7,ec,e5,23,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Windows\\System32\\msiexec.exe"=hex:24,b4,02,d1,47,\
  24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"\\Device\\HarddiskVolume1\\Programs\\jv16 PowerTools 2017\\jv16pt.exe"=hex:b4,\
  88,33,32,4b,24,d9,01,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
Does anyone have any suggestion why I'm getting "ERROR: Access is denied."
I'm running this in Windows 10. The user has Administrator rights and I ran it with "Run as Administrator"

Re: Delete registry subkeys

Posted: 10 Jan 2023 07:20
by Lucky4Me
Before trying to delete the reg keys, do a check, if any of the executables, are still running?

Re: Delete registry subkeys

Posted: 10 Jan 2023 15:38
by Docfxit
Lucky4Me wrote:
10 Jan 2023 07:20
Before trying to delete the reg keys, do a check, if any of the executables, are still running?
Good question. I wish...
I can't get the program to install. I have removed all files and registry entries with "Wordperfect" or "Corel" in the name.
I'm building this batch file so I can automate the leftover removal of entries that aren't deleted during the Uninstall process.

I don't recognize any programs running in Task Manager that might relate to these registry entries. I have rebooted the computer before trying to run this.

Thanks for the suggestion.

Re: Delete registry subkeys

Posted: 11 Jan 2023 11:17
by Docfxit
I figured out how to get it to work:
This fixed the problem:
(SET _KEY=SYSTEM\ControlSet001\Services\bam\State\UserSettings\S-1-5-21-2663527924-458596415-456053127-1001)
%~d0\Batch\SetACL.exe -on "HKLM\%_KEY%" -ot reg -actn ace -ace "n:%username%;p:full
%~d0\Batch\SetACL.exe -on "HKLM\%_KEY%" -ot reg -actn ace -ace "n:SYSTEM;p:full
REG Delete "HKLM\%_KEY%" /V "\Device\HarddiskVolume1\Dnload\9xAddons\WordPerfect_Office_2021_Pro\Autorun.exe" /F
REG Delete "HKLM\%_KEY%" /v "\Device\HarddiskVolume1\Dnload\9xAddons\WordPerfect_Office_2021_Pro\English\Setup.exe" /f
REG Delete "HKLM\%_KEY%" /v "\Device\HarddiskVolume1\Dnload\9xAddons\WordPerfect_Office_2021_Pro 194\Update\Update to v21.0.0.194.exe" /f
REG Delete "HKLM\%_KEY%" /v "\Device\HarddiskVolume1\Dnload\9xAddons\WordPerfect_Office_2021_Pro\Crack Fix\xf-corelkg.exe" /f