Powershell to delete a registry key?

Can someone help me with a powershell script that will take ownership and delete the following registry key?

HKLM:\SYSTEM\DriverDatabase\DeviceIds\USB\VID_054C&PID_0022

This would end a multi-year headache.

Thanks,

Sno.

I’m not well-versed in PowerShell, but if you find the script I can help with how to deploy it via BigFix.

I’m guessing you’ve already tried https://developer.bigfix.com/action-script/reference/registry/regdelete.html and/or the method described in the Notes section to delete non-empty registry keys (and all sub-keys)?

Given that BigFix runs as LOCAL SYSTEM on Windows, I wouldn’t expect taking ownership of the key would be a requirement?

Thanks, I think the Trusted Installer has lost ownership and I’m trying to get control of this key again.