Is it Possible to Delete a Registry Key/Subkey Using only a Partial Subkey Name? - Windows 10 Pro x64
Is it possible to delete a registry subkey by using only a partial name for the key or subkey? Below is an example I can think of off the top of my head:
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications\Microsoft.XboxApp_39.39.21002.0_neutral_~_8wekyb3d8bbwe /F
This command works in deleting the key, however it does not cater for differences in version, updates, etc. The highlighted in yellow section changes, but the other remains constant.
Is there any way (CMD, PowerShell, VBS) to delete this by deleting any subkey beginning with Microsoft.Xbox under the given key below:
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications\Microsoft.XboxApp /F
Does anyone have any ready-made examples or resources to direct me on such a task?
(Note, I am wondering because with W10 1803, the PowerShell method of removing Appx Package and Provisioned package does not seem to remove some apps from new user accounts and removing these keys as a post task seems to fix the ones which do not get removed).
Thanks in advance.