Try to remove some 64 and 32bit keys. I have tried two methods below however only the 32 bit keys under Wow6432Node are removed, it doesn’t make a difference. Even running just
This is complex. The client runs as a 32 bit process so it is automatically redirected to the 32 bit portion of the registry and I think you will also have the same problem with the wait command spawn as it will inherit the environment of the client.
There is an actionscript command that turns off this redirection, but you will have to move the file you constructed out of the directory you are using to a known safe directory (such as C:\Windows\Temp) as before executing this “C:\Program Files…” references “C:\Program Files (x86)…” and after it does not.
If you constructed the file you have and moved it to another directory then run the actionscript command:
Then I believe your registry deletion will work as intended. Be cautious when using the redirection when file or registry locations are involved! Note that saying “false” turns “off” the redirection (enabling a 64 bit app view of everything) and “true” turns it back on. It will also revert to normal at the end of the action.
Editing HKCU is a different beast. The debugger was launched under your user and therefore sees your HKCU. The TEM agent runs as SYSTEM and therefore doesn’t have an HKCU. Take a look here for how to access HKCU using relevance substitution: