List Your Favorites in PowerShell
Here's a little one-liner to list out your all your Internet Explorer favorites:
gci $env:userprofile\favorites -rec -inc *.url |
? {select-string -inp $_ -quiet "^URL=http"} |
select @{Name="Name"; Expression={[IO.Path]::GetFileNameWithoutExtension($_.FullName)}},
@{Name="URL"; Expression={get-content $_ | ? {$_ -match "^URL=http"} | % {$_.Substring(4)}}}
Comments
# thommck
11/11/2013 10:13 PM
This is perfect, thanks.
I'm using this to convert a whole load of existing favorites to use Group Policy Preferences, now that IEM has been deprecated
# pohatu
7/06/2014 9:10 AM
Thanks! I used this in a snippet to combine with resolve-dnsname.