I know this sub has a lot of smart people & I’m still learning Powershell & after spending literally HOURS trying to accomplish what I thought was a simple task & eventually figuring it out. It’s my hope that maybe one of the other less seasoned Powershell folks could use this.
** Scenario** You need to remove all the data & strings from a reg key but you do not want to delete the key only the data in it.
Example Remove all the data in the RunOnce key
Script Clear-Item -Path HKLM:SoftwareMicrosoftWindowsCurrentversionRunOnce”
Clear-Item -Path HKLM:SoftwareMicrosoftWindowsCurrentversionRunOnceEX”
submitted by /u/Weapon_Of_Pleasure
[link] [comments]
The post Clear Reg Key Values appeared first on How to Code .NET.