TypedURL/TypedURL.psm1

<#
.SYNOPSIS
 
Gets the Typed URL in the Internet Explorer.
 
.DESCRIPTION
 
The Get-TypedURL cmdlet Gives the URLs which are typed by user in the Internet Explorer.
 
.EXAMPLE
PS> Get-TypedURL
  
The Typed URLs in Internet Explorer :
  
http://go.microsoft.com/fwlink/p/?LinkId=255141
http://www.google.com
#>


Function Get-TypedURL {
    $PoU = Get-ItemProperty 'HKCU:\Software\Microsoft\Internet Explorer\TypedURLs' | gm | select -ExpandProperty name
        $Count = 0
        $value = $null
    while ($Count -ine 20 )
         {
            if ($PoU.Contains("url$Count") -eq 'true')
                {
                    [System.Array]$value += "url$Count"
                }
            $Count++
         }
        $Count = 0

    Write-Output " "
    Write-Output "The Typed URLs in Internet Explorer : "
    Write-Output " "

    while ($Count -ine $value.count)
        {
            Get-ItemProperty 'HKCU:\Software\Microsoft\Internet Explorer\TypedURLs' | Get-ItemPropertyValue -Name $value[$Count]
            $Count++
        }
}