Removing registry values with Invoke-HKCURegistrySettings?

//Removing registry values with Invoke-HKCURegistrySettings?
Removing registry values with Invoke-HKCURegistrySettings? 2017-09-06T17:20:09+00:00

The Toolkit Forums General Removing registry values with Invoke-HKCURegistrySettings?

  • Author
    Posts
  • JT-65
    Participant
    Post count: 10
    #2281 |

    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?

  • JT-65
    Participant
    Post count: 10

    I discovered the day after posting this that not only is it possible, but supported. The help info for Remove-RegistryKey includes information on making it work.

You must be logged in to reply to this topic.