Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to find registry key which uses Asterisk (*) in name

Status
Not open for further replies.

BB69

MIS
Jun 23, 2003
37
US
Hello,

I am looking for a way to search for the asterisk in the name of the key in the registry. Below is the code. The * is the actual name of the key in the registry.

Get-Item HKLM:\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\LDVPMenu | Remove-Item -Force -WhatIf

I don't remember if it is possible to search for a name which uses that special character. If it is, can you show me the how the code works for it.

Thanks
Brian
 
Oldish thread - newbie here.

I'm not sure about protocols here at Tek-Tips but I would suggest that this task is easy in a batch file.

To search the HKLM branch:

@echo off
reg query hklm /s /f h /k |find "*" >"results.txt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top