Scripting Question

KScript won't delete Registry Keys

06/27/2019 406 views


I have a simple Online KScript configured to delete some registry keys.

The script runs and succeeds. The log file reports that the deleting of the registry keys succeeded.

However when I look in the registry, they still exist, even after a reboot.

The "Delete Registry Key" commands are part of the "On Success" step in Task 1.  There are no entries in the "Verify" step.

Any ideas on how to get this script to really delete the registry entries would be much appreciated.

The Kace appliance is old and is running v6.4

 - Dave

Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author


the client is 32 bit so it is most likely doing the delete in the WOW6432node area vs the 64bit area "software".

are you using HKLM or HKLM64 at the beginning of the key name?

try hklm64 if that does not work let us know for the older kbox versions there are work around methods to do what you need.

Answered 06/27/2019 by: SMal.tmcc
Red Belt

  • Thanks SMal.tmcc, that worked! The keys on my 64bit client are now successfully deleted from the registry.

    If you're ever in Ireland, I'll buy you a pint!
    • come to UserKon this fall and I will buy you a Pint!

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ