Multiple Reg Keys

(imported topic written by Steve91)

Hi All

I need to remove the “Adobe” key under “HKEY_USERS\SID\Software” (for all instances that exist)

I’ve got so far with the relevance:

Q: if exists (keys whose (exists keys “Software\Adobe” of it) of key “HKEY_USERS” of registry) then (names of (keys whose (exists keys “Software\Adobe” of it) of key “HKEY_USERS” of registry)) else “N/A”

A: .DEFAULT

A: S-1-5-21-73586283-412668190-1801674531-112579

A: S-1-5-18

I need to append these values to a registry file in the format of:

Windows Registry Editor Version 5.00

http://-HKEY_USERS.DEFAULT\Software\Adobe

[-HKEY_USERS\S-1-5-21-73586283-412668190-1801674531-112579

\Software\Adobe]

-HKEY_USERS\S-1-5-18\Software\Adobe

Can anyone help out with this relevance please as I’ve become stuck!

I’ve also got to delete the Adobe folder under Application Data of all profiles but I’ve got that one sorted, just this part left.

Thanks

Steve

(imported comment written by BenKus)

Try this action:

delete __appendfile
appendfile Windows Registry Editor Version 5.00
appendfile
appendfile http://-HKEY_USERS.DEFAULT\Software\Adobe
appendfile -HKEY_USERS\S-1-5-18\Software\Adobe
appendfile {("%0d%0a") of (names of (keys whose (exists keys “Software\Adobe” of it) of key “HKEY_USERS” of registry))}

move __appendfile regdel.reg

waithidden regedit /s regdel.reg

This is untested… please let me know if it works or has issues…

Ben

(imported comment written by Steve91)

Works a treat Ben, thanks!

Just don’t need the .DEFAULT & S-1-5-18 ones specified as the 3rd line picks them up also

Cheers

Steve