Delete registry value doesn't check if value exists and runs into an error

Delete registry value doesn't check if value exists and runs into an error

Hi,
I'm deploying a configuration to disable autostarting an application by removing its autostart entry from HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run. Since I don't know on which machines the autostart is enabled I'm deploying the config to all machnies but on machines without this registry value the config exited with an error "The system can not find the specified file". Which looks like there is no check if the value exists before dc tries to delete it.

                New to ADSelfService Plus?