Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- Description:
- Script to copy histroy of target computer
- Author:
- William Fischer
- Last Revised Date:
- 06/04/2014
- Notes:
- Must have Browsing History View installed for this to work
- #>
- #Name of Remote Computer
- $RemoteHost
- #This is for Vista, 7 and 8
- Function Windows-6
- {
- #set-location $BHV
- & $BHV"./BrowsingHistoryView.exe" /HistorySource 3 /HistorySourceFolder $Source\"Users\" /VisitTimeFilterType 1 /LoadIE 1 /LoadFIrefox 1 /LoadChrome 1 /LoadSafari 1 /scomma $Destination".csv"
- }
- #This is for XP
- Function Windows-5
- {
- & $BHV"./BrowsingHistoryView.exe" /HistorySource 3 /HistorySourceFolder $Source\"Documents and Settings\" /VisitTimeFilterType 1 /LoadIE 1 /LoadFIrefox 1 /LoadChrome 1 /LoadSafari 1 /scomma $Destination".csv"
- }
- #Asks for remote computer's name
- $RemoteHost = read-host "Please enter name of remote computer"
- #Checks OS version
- $Version = (Get-WmiObject -computername $RemoteHost -class Win32_OperatingSystem).version
- #Figures out file name from remote host and current date
- $Month = (get-date).month
- $Day = (get-date).day
- $Year = (get-date).year
- $Date = echo $Month $Day $Year
- $Name = echo $RemoteHost $Date
- #Source of history
- $Source = echo \\$RemoteHost\c$\
- #Destination of history
- #Change this to where you want the file to be placed
- $Destination = echo \\______________________\$Name
- #Location of Browsing History View tool
- #Change this to BHV location
- $BHV = echo \\________________________\
- if ($Version-eq "5")
- {
- #write-host "Windows 7"
- Windows-5
- }
- #As long as it is not Windows XP it will call the version for Vista+
- else
- {
- Windows-6
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement