delete __appendfile
delete temp.reg
appendfile REGEDIT4
appendfile {("%0d%0a") of (names whose (it starts with “{238F”) of keys of key “HKEY_CLASSES_ROOT\CLSID” of registry) }
move __appendfile temp.reg
waithidden regedit -s temp.reg
Note that this expression took a really long time on my computer (30 seconds) and I am not sure why…
You can try this approach:
delete __appendfile
delete temp.reg
appendfile REGEDIT4
appendfile {("%0d%0a") of (“HKEY_USERS” & item 0 of it & “\SOFTWARE\Citrix” & item 1 of it ) of (names of keys of key “HKEY_USERS” of registry, (“ICA Client”;“PrinterProperties”;“PNAgent”;“Program Neighborhood Agent”))}
move __appendfile temp.reg
waithidden regedit -s temp.reg
This will list the keys even if they don’t exist, but I don’t think that will be an issue…