Support For IT

Group Policy reference

The templates are VersionKeep.admx and en-US\VersionKeep.adml, installed in C:\Program Files\VersionKeep\PolicyDefinitions and published beside each MSI: copy them to the central store (\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions) or to C:\Windows\PolicyDefinitions, or ingest the ADMX in Intune.

How policy applies

  • Policies (HKLM\SOFTWARE\Policies\VersionKeep) win over everything and lock their setting: the app shows it turned off with "Managed by your organization" (or by the OrganizationName), vkctl and the Properties tab refuse to change it. Locks are per setting: a policy for how often backups run leaves quiet hours to the person.
  • Defaults (HKLM\SOFTWARE\Policies\VersionKeep\Defaults, the editor's VersionKeep > Defaults) set a starting value. It applies until someone who may change settings changes that setting; a later change of the default doesn't overwrite their choice.
  • User policies (HKCU\SOFTWARE\Policies\VersionKeep) set a person's own preferences (the icon and notifications). The computer's policy wins over the person's.
  • Any value under either computer key makes the PC managed. On a managed PC, saved passwords, cookies and keys can't be chosen for backup unless AppDataSecrets allows it.
  • The service reads policy at start and again within seconds of a change (gpupdate needs no restart). Event 310 in VersionKeep/Operational says what was applied and what changed; 311 names each value it can't use. vkctl policy shows what is set, where it came from, what it locks and whether it applies, like gpresult.
  • What people may do binds people, not the service: a management tool's script running as Local System can still back up now.
  • Never put a password in policy. Shares are reached as the computer account (DOMAIN\PC$).

Organization

Policy Values Registry Default too What it does
OrganizationName text HKLM, OrganizationName (REG_SZ) no Your organization's name, shown in VersionKeep as "Managed by <name>". Any VersionKeep policy makes the PC managed; this only names who manages it.
ChangeRule 1 Administrators, 2 Anyone signed in, 3 Nobody (Group Policy only) HKLM, ChangeRule (DWORD) yes Who may change this PC's VersionKeep settings: administrators of the PC (the default, no UAC prompt), anyone signed in, or nobody, so settings change only by Group Policy. Only policy can set Nobody. Under Nobody an administrator in an elevated window (Run as administrator) can still activate or deactivate the PC's license, and nobody else.
FriendlyName text (%COMPUTERNAME%, %USERDOMAIN%, %USERNAME%) HKLM, FriendlyName (REG_EXPAND_SZ) yes The name VersionKeep shows for this PC (Home, Set up from another PC, the account on versionkeep.com), with its Windows name beside it. %COMPUTERNAME%, %USERDOMAIN% and %USERNAME% (the person signed in at the PC) are expanded. Up to 64 characters. It's the PC's name on its license too, kept in step with the account.

What to back up

Policy Values Registry Default too What it does
KnownFolders each of Desktop, Documents, Pictures, Videos, Music, Downloads: 1 or 0 HKLM, KnownFolders (subkey, a DWORD per name) yes Which of Windows' folders are backed up for everyone with a profile on the PC, wherever each person's folder really is (OneDrive moves them).
Folders list HKLM, Folders (subkey, REG_SZ values 1, 2, ...) yes More folders or drives to back up, one per line (D:\Projects). Details
Exclusions list HKLM, Exclusions (subkey, REG_SZ values 1, 2, ...) yes What to leave out of backups, one rule per entry: a path (C:\Users\Pat\Videos\Raw) leaves out that folder or file; a name or wildcard (node_modules, *.tmp) leaves out anything so named.
AppData 0 Off, 1 Each person chooses, 2 Only the required list HKLM, AppData (DWORD) yes Each person's app data (browser profiles, mail, settings files). Off: none. Each person chooses: as on an unmanaged PC, each app off until its person turns it on, plus anything in the required list. Only the required list: what the AppDataRequired policy names, for everyone, and people can't choose more.
AppDataRequired list HKLM, AppDataRequired (subkey, REG_SZ values 1, 2, ...) no App data backed up for everyone, one entry per app and category as "app/category" (firefox/bookmarks, chrome/extensions, git/credentials); vkctl policy app-data lists them for the apps found on a PC. A secret category here (saved passwords, cookies, private keys) is backed up whatever AppDataSecrets says.
AppDataSecrets 0 Off, 1 Each person chooses HKLM, AppDataSecrets (DWORD) no Whether people may choose to back up their saved browser passwords, cookies, addresses and cards, SSH private keys and Git credentials. On a PC with any VersionKeep policy this is off unless you turn it on: some organizations want it on purpose, most don't. Off still backs up any secret category the AppDataRequired policy names.

Folders

One full path per line: a folder (D:\Projects) or a whole drive (E:\). Network folders aren't backed up: a path on a server is refused. The computer's environment variables are expanded (%SystemDrive%, %PUBLIC%).

Where backups go

Policy Values Registry Default too What it does
Destinations list HKLM, Destinations (subkey, REG_SZ values 1, 2, ...) no Where backups go, one per line as Name|Location: a folder or share. Details
AllowUserDestinations 1 on, 0 off HKLM, AllowUserDestinations (DWORD) no On: people who may change settings can add destinations of their own (a USB drive) beside the ones the Destinations policy gives. Off: nobody can add, change or remove destinations on the PC. Not set: with the Destinations policy set, people can't add their own; without it, destinations are set up as on any PC, by whoever may change settings.
AwayDays 1 to 365 HKLM, AwayDays (DWORD) no How many days a drive or share may be away before VersionKeep warns about it, for every destination.
Buffer 1 on, 0 off HKLM, Buffer (DWORD) no On: while a destination is away, backups go to a VersionKeep\Buffer folder on the drive BufferDrive names, and are copied across when it's back. For every destination.
BufferDrive text HKLM, BufferDrive (REG_SZ) no The fixed drive of the PC that holds the buffer (C:). Used when the Buffer policy is on.
BufferMaxGb 0 to 65535 HKLM, BufferMaxGb (DWORD) no The most the buffer may hold, in GB; 0 is a tenth of the drive. Used when the Buffer policy is on.

Destinations

One destination per line as Name|Location. A location is a folder (D:\Backups), a share (Company backups|\\server\backups\%COMPUTERNAME%) or a rest-server without a login (rest:https://host/path). Cloud storage can't be set by policy: it needs an access key, and policy can be read by anyone on the network. %COMPUTERNAME% is the PC's name when VersionKeep first ran on it, so a renamed PC keeps its folder; %USERDOMAIN% is expanded too. Shares are reached as the computer account (DOMAIN\PC$): give that account write access. Never put a password in policy. People can't change or remove these destinations, and can add their own only when AllowUserDestinations is on.

When backups run

Policy Values Registry Default too What it does
BackupEveryMinutes 0 to 1440 HKLM, BackupEveryMinutes (DWORD) yes How often automatic backups run, in minutes: 15 to 1440, or 0 for no automatic backups (backups on change stop too; Back up now still works).
QuietHours 1 on, 0 off HKLM, QuietHours (DWORD) yes No automatic backups between QuietHoursStart and QuietHoursEnd, until a day has gone by without one.
QuietHoursStart 0 to 23 HKLM, QuietHoursStart (DWORD) yes The hour quiet hours start, 0 to 23, local time.
QuietHoursEnd 0 to 23 HKLM, QuietHoursEnd (DWORD) yes The hour quiet hours end, 0 to 23, local time; before the start means overnight.
PauseOnBatterySaver 1 on, 0 off HKLM, PauseOnBatterySaver (DWORD) yes Automatic backups wait while battery saver is on, until a day has gone by without one.
SkipMetered 1 on, 0 off HKLM, SkipMetered (DWORD) yes Backups to network and cloud destinations wait while the connection is metered.
BackupWhenShareReturns 1 on, 0 off HKLM, BackupWhenShareReturns (DWORD) yes Back up as soon as a destination that was away (a share off the network, a drive unplugged) can be reached again, instead of waiting for the next scheduled backup.
RandomDelayMinutes 0 to 240 HKLM, RandomDelayMinutes (DWORD) yes Delay each scheduled backup by up to this many minutes (0 to 240), the same delay every time on a PC, so hundreds of PCs don't start together.
DataCapGb 0 to 1000000 HKLM, DataCapGb (DWORD) yes How many GB of internet VersionKeep may use a month (0 for no cap). It counts what backups upload to cloud storage and to network folders reached over the internet, and what checks read back from them. Checks stop at 80%, automatic backups to those destinations wait at 95%, and Back up now and restores always go ahead.
DataCapStartDay 0 to 28 HKLM, DataCapStartDay (DWORD) yes The day of the month the data cap starts again (1 to 28), as the internet provider's bill does.
BackupsAtOnce 0 to 4 HKLM, BackupsAtOnce (DWORD) yes How many backups may run at the same time (1 to 4, 2 by default). One is always a drive or folder on this PC, never two at once; the others are network folders and cloud storage, the one whose backups are furthest behind first. With 1, every destination takes its turn.

How long versions are kept

Policy Values Registry Default too What it does
Retention 1 Balanced, 2 Keep everything, 3 Save space, 4 Custom HKLM, Retention (DWORD) yes Which old versions to keep. Balanced: every backup for a day, hourly for a week, daily for 30 days, weekly for 6 months, monthly for 2 years. Save space: daily for 14 days, weekly for 8 weeks. Custom: the RetentionKeep counts. The newest backup is always kept.
RetentionKeepLast 0 to 10000 HKLM, RetentionKeepLast (DWORD) yes With Versions to keep set to Custom, how many the last backups to keep.
RetentionKeepHourly 0 to 10000 HKLM, RetentionKeepHourly (DWORD) yes With Versions to keep set to Custom, how many hourly backups to keep.
RetentionKeepDaily 0 to 10000 HKLM, RetentionKeepDaily (DWORD) yes With Versions to keep set to Custom, how many daily backups to keep.
RetentionKeepWeekly 0 to 10000 HKLM, RetentionKeepWeekly (DWORD) yes With Versions to keep set to Custom, how many weekly backups to keep.
RetentionKeepMonthly 0 to 10000 HKLM, RetentionKeepMonthly (DWORD) yes With Versions to keep set to Custom, how many monthly backups to keep.
RetentionKeepYearly 0 to 10000 HKLM, RetentionKeepYearly (DWORD) yes With Versions to keep set to Custom, how many yearly backups to keep.
DeletedFilesDays 1 to 365 HKLM, DeletedFilesDays (DWORD) yes How long a deleted file's last version is kept when a destination fills and old backups are removed to make room, in days (1 to 365; 30 when not set).

What people may do

Policy Values Registry Default too What it does
AllowBackupNow 1 on, 0 off HKLM, AllowBackupNow (DWORD) no Off: people can't start a backup themselves (the icon, the app, vkctl). Scheduled backups and backups on change still run. On, or not set: allowed.
AllowPause 1 on, 0 off HKLM, AllowPause (DWORD) no Off: people can't pause automatic backups. On, or not set: allowed.
MaxPauseHours 1 to 48 HKLM, MaxPauseHours (DWORD) no The longest anyone may pause automatic backups, in hours (1 to 48).
AllowRestore 1 on, 0 off HKLM, AllowRestore (DWORD) no Off: people can't restore files or folders: the Restore page, the Properties tab's Backups tab and vkctl restore refuse. On, or not set: allowed.
AllowBrowseAsDrive 1 on, 0 off HKLM, AllowBrowseAsDrive (DWORD) no Off: people can't open a backup as a drive in File Explorer. On, or not set: allowed.
AllowRestoreApps 1 on, 0 off HKLM, AllowRestoreApps (DWORD) no Off: people can't restore an app's data (a browser profile, mail, settings). On, or not set: allowed.
ShowPropertiesTab 1 on, 0 off HKLM, ShowPropertiesTab (DWORD) no Off: File Explorer's Properties shows no Backups tab. On, or not set: allowed.
AskAboutNewDrives 1 on, 0 off HKLM, AskAboutNewDrives (DWORD) no Off: VersionKeep doesn't ask whether to use a newly plugged-in drive for backups. On, or not set: allowed.
AllowRemoveData 1 on, 0 off HKLM, AllowRemoveData (DWORD) no Off: VersionKeep's data on this PC can't be removed with Remove all data (vkctl remove-data). Uninstalling still works. On, or not set: allowed.
AllowSetupFromAnotherPc 1 on, 0 off HKLM, AllowSetupFromAnotherPc (DWORD) no Off: nobody can open another PC's backups here with its recovery key. On, or not set: allowed.

Restore

Policy Values Registry Default too What it does
RestoreDefaultAction 0 Put it back in its place, 1 A copy beside it, 2 Ask each time HKLM, RestoreDefaultAction (DWORD) yes What Restore does first: put the version back in its place (backed up first, so it can be undone), restore a copy beside it, or ask each time.
RequireBackupBeforeRestore 1 on, 0 off HKLM, RequireBackupBeforeRestore (DWORD) no On: people can't turn off the backup before a restore. If it can't be made, a restore still keeps every file it replaces beside it, so it can be undone (AllowRestoreAnyway decides whether people may go on then).
AllowRestoreAnyway 1 on, 0 off HKLM, AllowRestoreAnyway (DWORD) no On or not set: when the backup before a restore can't be made (the backup drive isn't plugged in), people may restore anyway; each file it replaces is kept beside it, and it removes nothing, so it can be undone. Off: the restore waits until a backup can be made, and people aren't offered Restore anyway.
UndoDays 1 to 365 HKLM, UndoDays (DWORD) no How long the backup made before a restore is kept so the restore can be undone, in days (1 to 365; 30 when not set). After that it's thinned like any other backup.

Keys and recovery

Policy Values Registry Default too What it does
RequireRecoveryKey 1 on, 0 off HKLM, RequireRecoveryKey (DWORD) no On: no backups run until an administrator has made this PC's recovery key, so backups can always be opened if the PC is lost. VersionKeep says so on Home and in the Admin event log.

Notifications and the icon

Policy Values Registry Default too What it does
ShowIcon 1 on, 0 off HKLM or HKCU, ShowIcon (DWORD) yes The VersionKeep icon in the notification area. Off hides it; the app still opens from Start. As a user policy, for that person.
NotifyFailing 1 on, 0 off HKLM or HKCU, NotifyFailing (DWORD) yes A notification when backups are failing. As a user policy, for that person.
NotifyUnreachable 1 on, 0 off HKLM or HKCU, NotifyUnreachable (DWORD) yes A notification when a destination hasn't been reached for days. As a user policy, for that person.
NotifyServiceStopped 1 on, 0 off HKLM or HKCU, NotifyServiceStopped (DWORD) yes A notification when the backup service has stopped for ten minutes. As a user policy, for that person.
NotifyNewDrive 1 on, 0 off HKLM or HKCU, NotifyNewDrive (DWORD) yes A notification asking whether to use a newly plugged-in drive for backups (AskAboutNewDrives turns the question off for everyone). As a user policy, for that person.
AttentionNoticeHours 1 to 8760 HKLM, AttentionNoticeHours (DWORD) no How long a destination may go without a backup before Home and the icon's tooltip say so, in hours (default 4). Each step must come after the one before; otherwise the defaults apply.
AttentionWarningHours 1 to 8760 HKLM, AttentionWarningHours (DWORD) no How long before the icon shows a warning, in hours (default 24). Each step must come after the one before; otherwise the defaults apply.
AttentionAlertHours 1 to 8760 HKLM, AttentionAlertHours (DWORD) no How long before a notification says what to do, in hours (default 72). Each step must come after the one before; otherwise the defaults apply.
AttentionPersistentHours 1 to 8760 HKLM, AttentionPersistentHours (DWORD) no How long before it stays on Home until fixed, in hours (default 168). Each step must come after the one before; otherwise the defaults apply.
AdminEventDays 1 to 90 HKLM, AdminEventDays (DWORD) no How many days a destination may go without a backup, or a recovery key stay unconfirmed, before VersionKeep raises events 1002 and 1004 in VersionKeep/Admin (default 3).

Updates

Policy Values Registry Default too What it does
AutoUpdate 0 Off, 1 Ask first, 2 Automatic HKLM, AutoUpdate (DWORD) no Off: VersionKeep never checks for a newer version (for PCs patched with Intune or Configuration Manager). Ask first: it downloads and checks a newer version, and Home asks before installing it. Automatic (the default): it installs at a quiet moment, watches the new version and puts the previous one back if it fails.
TargetVersionPrefix text HKLM, TargetVersionPrefix (REG_SZ) no Only update to versions that start with this, such as 1.2 (which takes 1.2.5, not 1.3).
UpdateWindowStart 0 to 23 HKLM, UpdateWindowStart (DWORD) no The hour updates may start installing, 0 to 23 (default 2). After two days without a chance in the window, any quiet moment will do.
UpdateWindowEnd 0 to 23 HKLM, UpdateWindowEnd (DWORD) no The hour the update window ends, 0 to 23 (default 5). The same as the start: any hour.
UpdateChannel 0 Stable, 1 Preview HKLM, UpdateChannel (DWORD) no Stable (the default): releases, each reaching every PC within a week. Preview: also preview releases, each the day it comes out.

Engine (advanced)

Policy Values Registry Default too What it does
VssEveryRun 1 on, 0 off HKLM, VssEveryRun (DWORD) no On: every backup takes a Volume Shadow Copy snapshot. Off (the default): only when a changed file needs one (open elsewhere, large, or a full scan).
AppInventory 1 on, 0 off HKLM, AppInventory (DWORD) no The inventory of each person's apps (extensions, profiles, plugins; never secrets), used to set up a new PC. On by default.
RegistrySnapshotHours 0 to 720 HKLM, RegistrySnapshotHours (DWORD) no How often the registry of people who chose to back up their Windows settings is saved for the backup, in hours (default 24; 0 turns it off).
LogLevel 1 Warnings and errors, 2 Everything HKLM, LogLevel (DWORD) no What VersionKeep writes to VersionKeep/Operational. Warnings and errors only, or everything (the default). VersionKeep/Admin always gets its events.

Not built yet

In the catalog so the names are reserved; not in the templates. Set, they show in vkctl policy as not used.

  • LicenseFile (Organization license file): It comes with licensing.
  • BandwidthLimit (Upload limit): It's planned.
  • EscrowCertificate (Recovery key escrow certificate): It's designed (managed-deployment.md section 4), not built.
  • AllowUserRecoveryKey (People may make their own recovery key): It comes with escrow.