> Hi Jan Egil R.,
>
>
> Try this:
>
>
> $url = get-itemproperty "HKCU:\Software\Microsoft\Internet
> Explorer\TypedURLs"
> $items = $url.psbase.properties | where {$_.Name -like "url*" -AND
> $_.value -like "*test*"} | foreach {$_.name} remove-itemproperty -path
> $url.PSPath -name $items
>
>
>
> ---
> Shay Levy
> Windows PowerShell MVP
>
http://blogs.microsoft.co.il/blogs/ScriptFanatic> PowerShell Toolbar:
http://tinyurl.com/PSToolbar>
>
>
> J> First of all....I`m running CTP3.
> J> J> The values in the dropdown list with recent URL`s in Internet
> J> Explorer (hit F4) are located in this registrykey:
> J> HKCU:\Software\Microsoft\Internet Explorer\TypedURLs
> J> J> With PowerShell the registrykeys can be found like this:
> J> PS>> Set-Location "HKCU:\Software\Microsoft\Internet
> Explorer\TypedURLs"
> PS>> (Get-Item . ).GetValueNames() |Where-Object {$_ -match "^url\d+"}
> PS>> J> url1
> J> url2
> J> Values can be found like this:
> J> PS>> (Get-Item . ).GetValueNames() |Where-Object {$_ -match "^url\d+"}
> |
> PS>> J> ForEach-Object { Get-ItemProperty . $_ }
> J> PSPath :
> J> Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Micros
> J> oft\Internet
> J> Explorer\TypedURLs
> J> PSParentPath :
> J> Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Micros
> J> oft\Internet
> J> Explorer
> J> PSChildName : TypedURLs
> J> PSDrive : HKCU
> J> PSProvider : Microsoft.PowerShell.Core\Registry
> J> url1 :
http://www.test1.com> J> PSPath :
> J> Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Micros
> J> oft\Internet
> J> Explorer\TypedURLs
> J> PSParentPath :
> J> Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Micros
> J> oft\Internet
> J> Explorer
> J> PSChildName : TypedURLs
> J> PSDrive : HKCU
> J> PSProvider : Microsoft.PowerShell.Core\Registry
> J> url2 :
http://www.test2.com> J> I want to create a script which filters on the keyword "test2" and
> J> then deletes the matching keys. Any suggestions on how this can be
> J> accomplished?
> J>
>