Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to save browsing history for a certain day (Wednesday) from Internet Explorer 8 in text format.

I tried doing copy/paste from the history box in IE8, but it doesn't copy anything.

I was able to navigate to the hidden 'history' folder, but all I have is a bunch of folders and files with no apparent way to save it all in a text format.

Thanks.

share|improve this question
up vote 2 down vote accepted

Please open powershell on your computer and paste in the following code (right klick > insert) and press Enter.

function get-iehistory {            
[CmdletBinding()]            
param ()            

$shell = New-Object -ComObject Shell.Application            
$hist = $shell.NameSpace(34)            
$folder = $hist.Self            

$hist.Items() |             
foreach {            
 if ($_.IsFolder) {            
   $siteFolder = $_.GetFolder            
   $siteFolder.Items() |             
   foreach {            
     $site = $_            

     if ($site.IsFolder) {            
        $pageFolder  = $site.GetFolder            
        $pageFolder.Items() |             
        foreach {            
           $visit = New-Object -TypeName PSObject -Property @{            
               Site = $($site.Name)            
               URL = $($pageFolder.GetDetailsOf($_,0))            
               Date = $( $pageFolder.GetDetailsOf($_,2))            
           }            
           $visit            
        }            
     }            
   }            
 }            
}            
}

get-iehistory | export-csv $env:USERPROFILE\iehistory.csv -NoTypeInformation
invoke-item $env:USERPROFILE\iehistory.csv

The code exports the website name, url and date into a csv file that is saved in your profile path. The last line opens the file.

share|improve this answer
    
Amazing! Fabulous!!! – xpt Aug 4 '13 at 3:09
    
Very nice indeed! Thanks! – mcu Aug 4 '13 at 8:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .