VersionKeep is one installer (.msi) for the whole PC, for Windows 11 (the installer refuses an earlier Windows). It installs for every person who signs in, runs its backup service as Local System, and starts its notification-area icon for each person, even when it was installed while they were signed in.
Install it silently
msiexec /i VersionKeep.msi /qn /l*v "%TEMP%\VersionKeep-install.log"
Any tool that installs an MSI as the PC works: Group Policy software installation (assigned to computers), Intune (a line-of-business or Win32 app), Configuration Manager, PDQ Deploy or your RMM.
Point it at the share with Group Policy
The installer puts VersionKeep's Group Policy templates, VersionKeep.admx and en-US\VersionKeep.adml, in C:\Program Files\VersionKeep\PolicyDefinitions. Copy them to your central store (\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions), or ingest the ADMX in Intune. Every policy is a registry value under HKLM\SOFTWARE\Policies\VersionKeep, so any tool that sets registry values works too.
For backups to a share, set these. Each is named as the Group Policy editor shows it, under VersionKeep, with its registry value in brackets:
- Destinations (
Destinations): one entry per destination, a name and a location with|between them, such asOffice file server|\\fileserver\backups\VersionKeep\%COMPUTERNAME%. - Keep backing up while a destination is away (
Buffer) on, with Buffer drive (BufferDrive) set toC:, so backups carry on while the share is out of reach. - Back up when a destination is back (
BackupWhenShareReturns) on, to back up as soon as a laptop is back in the office. - Spread backups over (
RandomDelayMinutes) set to 30 or so, so hundreds of PCs don't all start their scheduled backups at once. - Who may change settings (
ChangeRule): Administrators (the default), or Nobody so settings change only by policy.
%COMPUTERNAME% is the PC's name when VersionKeep first ran on it, so a renamed PC keeps its folder. A destination inside a folder that OneDrive, Dropbox, Google Drive or iCloud syncs is refused, since sync can make its files online-only or change them. People can't change or remove a destination the policy gives, and can't add their own unless People may add their own destinations (AllowUserDestinations) is on. The share is reached as the PC's computer account; never put a password in policy.
Each policy locks its setting, and VersionKeep shows it as "Managed by your organization", or by the name you set in Organization name (OrganizationName). To set a starting value people may change, use the same policy under VersionKeep > Defaults (HKLM\SOFTWARE\Policies\VersionKeep\Defaults) instead.
VersionKeep reads policy again within seconds of a change, with no restart, and writes event 310 with what changed (311 for a value it can't use). On a PC, vkctl policy shows what is set, where it came from and what it locks, like gpresult.
Every policy, with its values and registry value, is in the Group Policy reference. On a PC with VersionKeep, vkctl policy reference <file> writes the same reference for the version installed there, made from the same list the service reads.
Make each PC's recovery key
Run this once on each PC, as Local System or an administrator: an Intune platform script, a Group Policy startup script or your RMM. It's safe to run again: it does nothing on a PC that already has a recovery key. Change \\fileserver\keys$ to your own.
$vkctl = "$env:ProgramFiles\VersionKeep\Service\vkctl.exe"
# Make this PC's recovery key, confirm it, and keep it where only IT can read it.
if ((& $vkctl recovery-key) -match '^Recovery key:\s+none') {
$out = & $vkctl recovery-key new
$key = ($out | Select-String '^\s{4}(\S.*)$').Matches[0].Groups[1].Value.Trim()
$groups = ($key -replace '[\s-]', '') -split '(.{5})' | Where-Object { $_ }
if (($out -join "`n") -match 'confirm <group (\d)> <group (\d)>') {
& $vkctl recovery-key confirm $groups[$Matches[1] - 1] $groups[$Matches[2] - 1]
}
"$env:COMPUTERNAME`t$(Get-Date -Format s)`t$key" | Out-File "\\fileserver\keys$\$env:COMPUTERNAME.txt"
}
Give keys$ the same permissions as the backups folder in Set up the share, so each PC can write its own key file and read no other. The recovery key opens that PC's backups from any PC, so keep the key files as you keep BitLocker recovery keys. See When a laptop dies.
With Require a recovery key (RequireRecoveryKey) on, a PC makes no backups until its recovery key has been made, and says so on Home and as event 1011.
Without Group Policy
On PCs you don't manage with policy, the same script can point VersionKeep at the share. Add this after its $vkctl line:
# This PC's backup name: the name it had when VersionKeep first ran on it.
$name = ((& $vkctl name) | Select-String '^Backups go under:\s+VersionKeep\\(.+)$').Matches[0].Groups[1].Value.Trim()
$share = "\\fileserver\backups\VersionKeep\$name"
# Back up to this PC's own folder on the share.
if (-not ((& $vkctl destinations) -like "*$share*")) {
& $vkctl destinations add $share "Office file server"
}
# While the share is out of reach, keep backups on this PC's C: drive and move them across later.
$id = (((& $vkctl destinations) -like "*$share*" | Select-Object -First 1).Trim() -split '\s+')[0]
& $vkctl destinations buffer $id on C:
# Back up as soon as the share is back, instead of at the next scheduled backup.
& $vkctl schedule when-back on
Try it on one PC first. A destination added while the service runs is backed up at once; after the service starts, its first scheduled backup waits 2 minutes. Then vkctl status on that PC shows the share and its first backup.
Desktop, Documents, Pictures, Videos and Music are backed up for everyone on the PC from the start. To add folders or leave things out, use the Windows folders to back up, More folders to back up and What to leave out policies (KnownFolders, Folders, Exclusions), or vkctl sources (see The command line). More folders to back up takes folders and drives on the PC; a path on a server is refused.
Updates
VersionKeep updates itself by default: once a day it asks versionkeep.com whether a newer version this PC's license covers is out, downloads it, checks its signatures, and installs it when no backup or restore is running: between 2 and 5 in the morning by default, and at any quiet moment after two days without one. A PC activated offline doesn't check. If the new version doesn't work, the previous one is put back (event 1016) and automatic updates pause. A release reaches every PC within a week.
To patch VersionKeep with Intune or Configuration Manager instead, set Updates (AutoUpdate) to Off. Ask first downloads and checks a new version and asks on Home before it installs. Stay on version (TargetVersionPrefix), Update window start and end (UpdateWindowStart, UpdateWindowEnd) and Update channel (UpdateChannel) are in the Group Policy reference. On a PC, vkctl update shows the version, the update on offer and why it waits.
Antivirus
VersionKeep needs no antivirus exclusions and sets none. If your antivirus slows backups, exclude the process C:\Program Files\VersionKeep\Service\vkengine.exe, not folders. If event 513 in the Operational log says SQLite retried a file another program held, the folders to consider excluding are %ProgramData%\VersionKeep\index and %ProgramData%\VersionKeep\storage, which hold only VersionKeep's own databases. Don't exclude all of %ProgramData%\VersionKeep: copies of people's files pass through it while a backup is open as a drive or a restore runs.
Who can change it
Only administrators of the PC can change what it backs up or where, or turn backups off. People without administrator rights can still restore their own files. Keep it that way for managed PCs: the ChangeRule policy, or vkctl settings change-rule, changes it.