Remove a value: Remove-ItemProperty -Path 'HKCU:\Software\MyApp' -Name 'Version'; remove an entire key: Remove-Item -Path 'HKCU:\Software\MyApp' -Recurse
Known gotchas
Writing to HKLM:\ requires an elevated (Administrator) PowerShell session; HKCU:\ is writable by the current user without elevation.
Use New-ItemProperty to create a value that does not yet exist, and Set-ItemProperty to modify one that does; using Set-ItemProperty on a nonexistent value returns an error.
Property types in PowerShell (String, DWord, QWord, Binary, MultiString, ExpandString) correspond to REG_SZ, REG_DWORD, etc.; choose the correct type or applications may misread the value.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp