Link to home
Start Free TrialLog in
Avatar of cbinayak
cbinayakFlag for India

asked on

Powershell command to delete specific Registry Key

Can you please help me in deleting the Key named "Certificates" located in the following path using PowerShell Script.

"HKEY_LOCAL_MACHINE\Software\Microsoft\SystemCertificates\SMS"

 User generated image
We are using Windows Server 2012 R2
Avatar of ☠ MASQ ☠
☠ MASQ ☠

If you right click on the key and look at permissions do you have full access to it?

Remove-ItemProperty -Path 'HKEY_LOCAL_MACHINE\Software\Microsoft\SystemCertificates\SMS\Certificates'

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
oBdA is correct - mine will have just removed the values!