Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.


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 {            
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))            

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.