Remove Registry Item -- Can't get any cmdlets to work This topic contains 2 replies, has 2 voices, and was last updated by Karson Van Meeteren 2 years, 5 months ago. Author Posts June 19, 2014 at 10:31 am #16373 Karson Van MeeterenParticipant In the image below, I am trying to delete "subkey". However, a variety of cmdlets simply won't work 🙁 I've tried: Get-ChildItem -Path hklm:\Software\Microsoft\Windows\CurrentVersion\test\* | remove-item Get-item -Path hklm:\Software\Microsoft\Windows\CurrentVersion\test\* | remove-item Is there something obvious I am missing? [IMG]http://i.imgur.com/RVjalQa.png[/IMG] June 19, 2014 at 10:48 am #16374 Don JonesKeymaster I think that's exposed as an ItemProperty – do a "Get-Command *ItemProperty" to see commands that work with those. June 19, 2014 at 10:57 am #16377 Karson Van MeeterenParticipant Thanks, Don. Looks like that's the trick. Remove-ItemProperty -Path hklm:\Software\Microsoft\Windows\CurrentVersion\test\ -Name * -WhatIf [i]What if: Performing the operation "Remove Property" on target "Item: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\test\ Property: subkey".[/i] Author Posts You must be logged in to reply to this topic.