I’m deploying an application and using Invoke-HKCURegistrySettings to add a value to each user’s …Windows\CurrentVersion\Run key. I’d like to remove that value if/when the application is uninstalled.
Since I’m passing a script block to Invoke-HKCURegistrySettings, I know I CAN use it to remove this value, but is there any reason I shouldn’t? Besides the fact that it could allow me to break 1,000 computers if I’m not careful?