Backinfo PowerShell script

Update: I have created a self-contained install script which will install and set backinfo with 2 clicks – here.

Here is a quick script that will copy backinfo.exe to a PC and create a registry setting to run at logon. You’ll need to run PowerShell as administrator, and modify the robocopy line as you see fit.

[console]::title = "Backinfo Setup Script"

function Robocopy ($source, $destination)

#Set backup file location and create if not existing

$timenow = get-date -Format ddMMyyhhmmss
#Set log file location
$logfile = "RobocopyLog.txt"

robocopy.exe $source $destination /e /r:0 /w:0 /tee /log+:$logfile

write-host "Robocopy finished"

#End function
Robocopy "\\server\source\software\backinfo" "C:\Program Files\Backinfo"

New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" -Name BackInfo 

-Type String -Value "C:\Program Files\BackInfo\Backinfo.exe"
#Run it now
CD "C:\Program Files\BackInfo\"

Note that you should also right click on the file (as an Administrator) and choose Properties, and then unblock. This will mean that all users run this without a security warning.

Also see my other post for more info and to download backinfo –

Edit: Here is a complete file with the scripts, batch file and backinfo files. Just edit the location in the ps1 script: backinfo_complete

Leave a Reply

Your email address will not be published. Required fields are marked *