Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set D1=%date:~4,2%-%date:~7,2%-%date:~10,4%
- :mainbhvmenu
- cls
- COLOR 07
- echo.
- echo.
- echo Is %remotetarget% running XP or WIN7 ? :
- echo.
- echo 1 - XP
- echo 2 - WIN7
- echo.
- echo.
- :mainbhvchoice
- set /P C1=[1,2]?
- if "%C1%"=="1" goto BHVXP
- if "%C1%"=="2" goto BHVWIN7
- echo.
- echo "%C1%" is not a valid choice, please try again
- goto mainbhvmenu
- :BHVXP
- echo.
- echo.
- echo Please be patient... if the Browser history is significant, this could take a few moments...
- echo.
- echo.
- md "\\SERVER\RESULTS\%remotetarget%\"
- "\\SERVER\TOOLS\BrowsingHistoryView\1.51\Files\32bit\BrowsingHistoryView.exe" /HistorySource 3 /HistorySourceFolder "\\%remotetarget%\c$\Documents and Settings" /VisitTimeFilterType 1 /LoadIE 1 /LoadFIrefox 1 /LoadChrome 1 /LoadSafari 1 /scomma "\\SERVER\RESULTS\%remotetarget%\%remotetarget%-%D1%.csv"
- echo.
- echo.
- echo ....
- echo Browser History export is complete.
- echo ...
- echo ..
- echo . (closing in 5 seconds...)
- echo.
- :: command to silent/delay for 5 seconds before batch file closes
- ping -n 5 127.0.0.1 > nul
- goto quit
- echo.
- goto quit
- :BHVWIN7
- echo.
- echo.
- echo Please be patient... if the Browser history is significant, this could take a few moments...
- echo.
- echo.
- md "\\SERVER\RESULTS\%remotetarget%\"
- "\\SERVER\TOOLS\BrowsingHistoryView\1.51\FILES\32bit\BrowsingHistoryView.exe" /HistorySource 3 /HistorySourceFolder "\\%remotetarget%\c$\Users\" /VisitTimeFilterType 1 /LoadIE 1 /LoadFIrefox 1 /LoadChrome 1 /LoadSafari 1 /scomma "\\SERVER\RESULTS\%remotetarget%\%remotetarget%-%D1%.csv"
- echo.
- echo.
- echo ....
- echo Browser History export is complete.
- echo ...
- echo ..
- echo . (closing in 5 seconds...)
- echo.
- :: command to silent/delay for 5 seconds before batch file closes
- ping -n 5 127.0.0.1 > nul
- goto quit
- :QUIT
- EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement