Listing your IE Favorites (with URL) with Windows PowerShell

Today I wanted to extract a list of each IE Favorite I’ve saved, along with the actual URL that it points to. Turns out it’s pretty easy. Here’s that code.

 

gci -path ([Environment]::GetFolderPath(“Favorites”)) -recurse | ? {$_.Length} | % {$_.BaseName; Get-Content $_.FullName -ea silentlycontinue | Select-String ^url=*| %{$_ -replace “^url=”,”” ;””}}

 

The output will list the name of each favorite, along with the actual URL.

 
Comments

No comments yet.

Leave a Reply