Query On Behaviour Of "Invoke-ADTAllUsersRegistryAction"
I'm using Invoke-ADTAllUsersRegistryAction with -ScriptBlock {} to set registry keys in user hives for the install part. All good, works as intended.
I want to reverse the changes in the uninstall part.
So my thinking is I repeat the same process, where keys are removed (not set in anyway), using Remove-ADTRegistryKey this should be OK I assume? Silly question, as the Default hive is also modified, it's only going to remove the keys from the Default hive once, right?
It's not going to continually remove the keys from any new user logins after the application has been uninstalled?
TLDR: Reg keys in the Default hive are copied to new logins. If a key doesn't exist in the Default hive, it's not going to remove it on any new logins... right?