Im trying to cleanse the uninstall menu from all garbage that Steam puts in there.
So I tried with:
Remove-Item -path "HKLM:SOFTWAREMicrosoftWindowsCurrentVersionUninstallSteam` App` *" -Recurse
didn’t work, the keys is still there.
so I tried with specifying the key explicitly:
PS C:WINDOWSsystem32> Remove-Item -path 'HKLM:SOFTWAREMicrosoftWindowsCurrentVersionUninstallSteam App 10'
Remove-Item : Cannot find path 'HKLM:SOFTWAREMicrosoftWindowsCurrentVersionUninstallSteam App 10' because it does
not exist.
At line:1 char:1
+ Remove-Item -path 'HKLM:SOFTWAREMicrosoftWindowsCurrentVersionUn ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKLM:SOFTWARE...llSteam App 10:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Obviously its the spaces in “Steam App XXXXXXX” that are the problem, and regardless how I do with backticks, `, ´, “, ‘ etc. it will not find the keys. Also tried with the &(” “) but then it complains about & being a reserved operator.
What can the problem be? I want it to delete all keys that begins on “Steam App” inside the hive “HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall”
(And no, im not going it through manually. Its over 500 keys)