Our Thinking / Field Notes / The Guide

STEP-BY-STEP GUIDANCE / BACKUP AND RECOVERY FOR WINDOWS LAPTOPS

How to protect business laptop files that never reach the server

Find out which business files exist only on staff laptops, then protect them with OneDrive Known Folder Move. Includes a read-only laptop check, a small pilot, blockers to clear first and a restore test.

Start here

Find the files before you switch anything on. Ask staff where they really save work, run a read-only check on a few laptops to see which folders hold data and whether Desktop, Documents and Pictures already sit inside OneDrive, then protect those three folders with OneDrive Known Folder Move - by hand on a few laptops, or through Intune or Group Policy on many. Pilot first, because the first upload can be large, and finish by restoring a test file. Anything kept outside those three folders needs moving into them or a separate backup tool.

What you need before you start

The risk is ordinary. A laptop is lost, stolen, fails or gets encrypted, and the only copy of a quote, spreadsheet or scanned contract goes with it. The NCSC lists exactly that - a device that might be lost, stolen or stop working - as the reason to keep a copy elsewhere. Files saved to a file server or SharePoint are already somewhere safer. The ones that matter here are the files saved to the laptop itself.

This guide assumes Windows laptops and Microsoft 365 accounts for your staff. It uses OneDrive Known Folder Move, a OneDrive feature that moves the Windows Desktop, Documents and Pictures folders into the user's OneDrive and points Windows at the new location. People keep saving where they always did while OneDrive uploads in the background.

  • A work account with a OneDrive licence for every person involved. Microsoft lists 1 TB per user for Microsoft 365 Business Basic, Standard and Premium, but only 2 GB per user for Microsoft 365 F3, so frontline licences will not hold a laptop's worth of files.
  • For the check and the by-hand route you only need the person who uses the laptop. For the policy route you need an account that can create Intune configuration profiles or edit Group Policy, and your Microsoft 365 tenant ID (the unique identifier for your organisation's Microsoft 365 tenant).
  • The laptop must be able to sign in to OneDrive with the work account. Silent sign-in works on PCs that are Microsoft Entra joined (registered to your Microsoft 365 organisation as work devices); anything else signs in by hand.
  • OneDrive is designed for one person's own work files. Team or department files belong in SharePoint, not in whoever happens to hold them on a laptop.

Ask people where the work really lives

A scan can tell you what is on a disk. It cannot tell you which files would hurt to lose. That needs a short conversation with each person, and it usually takes less time than the scan. The Desktop in particular is a filing cabinet nobody designed, and the owner of the laptop is the only one who knows what is in it.

Keep the questions practical and free of blame. Nobody is in trouble for saving to the Desktop.

  • Where do you save things when you are in a hurry?
  • If this laptop failed tonight, which files would you miss first thing tomorrow?
  • Do you export reports or data from any system and keep the export on the laptop?
  • Do you keep mail archives, scans or photos of paperwork locally?
  • Is there anything that exists only on a USB drive or a second disk?

Check each laptop without changing anything

The answers tell you what people think is on the laptop. These three read-only checks show what is actually there. They list folder names, file counts and sizes. They do not open, copy or move any file. Run them in Windows PowerShell as the normal signed-in user - administrator rights are not needed and are not a good idea here.

The second check reads every file's size in each folder, so allow a few minutes on a laptop with a lot of data. OneDrive folders and AppData are skipped on purpose.

  1. Open PowerShell and run the first command to see where Windows currently keeps Desktop, Documents and Pictures. A path that includes OneDrive followed by your organisation's name means the folder is already protected. A path beginning with two backslashes means it is redirected to a server. A plain path under C:\Users means it exists only on the laptop.
    powershell
    'Desktop','MyDocuments','MyPictures' | ForEach-Object {
        [pscustomobject]@{ Folder = $_; Location = [Environment]::GetFolderPath($_) }
    }
  2. Run the second command to list the folders in the user's profile with their file counts and sizes, largest first. Folders such as Downloads or anything the person created themselves are the ones most likely to hold work that nobody has thought about.
    powershell
    Get-ChildItem -LiteralPath $env:USERPROFILE -Directory -Force -ErrorAction SilentlyContinue |
        Where-Object { $_.Name -notlike 'OneDrive*' -and $_.Name -ne 'AppData' } |
        ForEach-Object {
            $m = Get-ChildItem -LiteralPath $_.FullName -Recurse -File -Force -ErrorAction SilentlyContinue |
                Measure-Object -Property Length -Sum
            [pscustomobject]@{
                Folder = $_.Name
                Files  = $m.Count
                SizeGB = [math]::Round(($m.Sum / 1GB), 2)
            }
        } |
        Sort-Object SizeGB -Descending
  3. Run the third command to list top-level folders on every drive, apart from the standard Windows ones. A folder such as a data or working folder at the root of C:, or a second disk, is the sort of thing you are looking for. Mapped network drives will appear here too; those are already on a server, so ignore them.
    powershell
    Get-PSDrive -PSProvider FileSystem | ForEach-Object {
        Get-ChildItem -LiteralPath $_.Root -Directory -Force -ErrorAction SilentlyContinue |
            Where-Object { $_.Name -notin 'Windows','Program Files','Program Files (x86)','ProgramData','Users','$Recycle.Bin','System Volume Information','Recovery','PerfLogs' } |
            Select-Object FullName
    }
  4. For each laptop, write down the folder, its rough size and whether the owner says it is business data. That list is your inventory, and it feeds the next decision.

Decide what happens to each location

Every item on your inventory ends up in one of three places, and Known Folder Move only deals with the first.

Treat OneDrive as the first copy off the laptop rather than a complete backup. Sync mirrors changes, and Microsoft's own reminder when someone deletes a synced file is that deleted files are removed everywhere. The OneDrive recycle bin gives you a way back from mistakes, and the NCSC's small-business guidance suggests considering two backups - one online and one on a separate storage device - and knowing how to restore them. How far you take that is a separate decision from this one.

  • Inside Desktop, Documents or Pictures: Known Folder Move covers these. This is usually most of what you find.
  • Elsewhere on the laptop but genuinely business data: move it into Documents with its owner, or into a clearly named folder inside their OneDrive. Known Folder Move does not cover Music, Videos or arbitrary folders. If a piece of software insists on a fixed local data path, such as a line-of-business or accounting package, check that supplier's guidance before putting live data files in a synced folder, and consider a separate backup tool that can protect a chosen folder instead.
  • Shared or departmental files: these are team data and belong in a SharePoint site or shared library, not in one person's OneDrive.

Clear the blockers before you switch anything on

Known Folder Move does not work in a few situations, and the first command in the check above will already have shown you most of them. Sort these out before any pilot, because a silent policy that cannot act is a confusing thing to troubleshoot.

  • Folders redirected to a server with Windows Folder Redirection Group Policy. The OneDrive policies will not work until that redirection is disabled. If the folders are redirected to OneDrive already, disable the redirection and leave the contents in place. If they are redirected to a local path, disable it and leave the contents, and Known Folder Move then moves them. If they are on a network file share, copy the share contents into the user's existing Documents, Pictures and Desktop folders in OneDrive first (Microsoft points to SharePoint Migration Manager for this, without preserving file share permissions if it creates the folders), then disable the redirection, then enable Known Folder Move. Do one person first.
  • The Group Policy setting User Configuration, Administrative Templates, Desktop, Prohibit User from manually redirecting Profile Folders. It must be Disabled or Not configured, or the folders will not move.
  • Folders already redirected to another organisation's OneDrive. Redirecting to yours creates new, empty folders and the person sees an empty desktop until their files are copied across by hand. Disable the other redirection first if you can.
  • People syncing OneDrive files from a SharePoint Server rather than Microsoft 365. Known Folder Move does not work for them.
  • File problems that stop individual files syncing: a full path of 260 characters or more, names that start with a space or contain characters such as a colon, question mark or asterisk, files over 250 GB, folders containing junction points or symlinks, and files that are open when the move happens. Microsoft also recommends keeping a synced library to 300,000 items or fewer, so a folder with a very large file count in your second check deserves a look before it goes anywhere.

Protect a handful of laptops by hand

If you have a few laptops, doing this with each person is quicker than building a policy, and they see what has happened. Their folders upload in the background while they carry on working. The first upload is the slow part: it depends on how much is in the folders and your upload speed, and for a large Desktop it can run for hours rather than minutes. An overnight run with the laptop on power and connected is sensible.

Stopping protection later is a real action with real consequences. Windows asks whether to keep the files only in OneDrive, which removes them from the laptop, or only on the PC, which removes them from OneDrive. Tell people not to turn a folder off to make a message go away.

  1. Check the person is signed in to OneDrive with their work account (the cloud icon in the notification area) and ask them to save and close any files in Desktop, Documents and Pictures. Open files cannot be moved.
  2. Select the OneDrive cloud icon, choose the Help and Settings icon, then Settings. Open the Sync and backup tab and select Manage backup.
  3. Switch on the folders you want protected and confirm. If Windows reports a problem with particular files, fix those (for example a name with a banned character) and try again.
  4. Leave the laptop on, awake and online until OneDrive finishes syncing. Open Manage backup again: a folder that is not yet protected shows Not backed up.

Protect many laptops with a policy

For more than a handful of laptops, you set OneDrive policies and the OneDrive app on each laptop does the move. Microsoft calls the main one a silent move, because nobody is asked. The first thing people notice may be a laptop working hard and a slower office connection, so start with a small pilot group and slow the upload down on purpose. Pick two or three willing people, include someone with a large Desktop, and make sure none of them has Folder Redirection in place.

These steps use an Intune settings catalog profile. The settings catalog is the part of the Intune admin centre that lists individual device settings by name, so you can search for OneDrive policies instead of importing files. You need an account that can create configuration profiles.

If your laptops are managed with Group Policy instead, the same settings are under Computer Configuration, Policies, Administrative Templates, OneDrive, once you have added the OneDrive administrative template files to your Central Store. Link the policy to a pilot group using security filtering and follow the same sequence. Set each setting to Enabled or Disabled and keep it that way, because moving a configured OneDrive setting back to Not configured does not undo it.

  1. In the Microsoft Intune admin centre select Devices, Configuration, then Create. For Platform choose Windows 10 and later, for Profile type choose Settings catalog, and select Create. Give the profile a name you will recognise, such as Windows: OneDrive folder protection pilot.
  2. In Configuration settings select Add settings and search for OneDrive in the settings picker. Add Silently move Windows known folders to OneDrive and choose the version that has five sub-settings: Desktop, Documents, Pictures, Show notification to users after folders have been redirected and Tenant ID. Enter your tenant ID, set the folders you want to True and choose whether to show the notification. A notification is useful during a pilot because people can see what happened.
  3. Also add Silently sign in users to the OneDrive sync app with their Windows credentials if your laptops are Microsoft Entra joined, and Limit the sync app upload rate to a percentage of throughput. Microsoft recommends a value of 50 percent or higher and suggests using this temporarily during rollout. When uploads have finished, set it to Disabled rather than Not configured, because Microsoft notes that moving a configured setting back to Not configured leaves the last value in force.
  4. Add Prompt users to move Windows known folders to OneDrive with the same tenant ID. Microsoft recommends pairing it with the silent policy so that anyone whose silent move fails is prompted to correct the problem and carry on.
  5. Select Next, assign the profile to your pilot group only, then review and create it. The policy reaches a laptop the next time it checks in with Intune, and the move starts after that. Keep pilot laptops on power and online, and check with your pilot users before widening.
  6. Once the pilot is clean, widen in batches that your support time can cope with. Microsoft's published limits of 1,000 devices a day and 4,000 a week for silent moves are aimed at very large estates; a small business can go faster, but a few laptops a day keeps any problems manageable. When you are happy, consider enabling Prevent users from redirecting their Windows known folders to their PC. It disables the Stop protecting button and gives an error if someone tries to stop syncing a known folder. Leave this until after the pilot, because it removes the user's way out.

Check it worked, including a restore

Seeing the folders upload is encouraging, but the real test is getting a file back. Do these checks on a pilot laptop once OneDrive reports that syncing is finished.

  1. On the laptop, open Settings, Sync and backup, Manage backup in OneDrive. Desktop, Documents and Pictures should no longer show Not backed up.
  2. Re-run the first command from the laptop check. Desktop, Documents and Pictures should now point to paths inside the OneDrive folder.
  3. If you used a policy, confirm it arrived by reading the OneDrive policy values on the laptop. KFMSilentOptIn should contain your tenant ID. This only reads values and changes nothing.
    powershell
    Get-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive' | Select-Object KFMSilentOptIn, KFMSilentOptInWithNotification, KFMOptInWithWizard
  4. Sign in to OneDrive on the web as that user and open Desktop, Documents and Pictures. A few files you recognise should be there.
  5. Restore test: create a file called restore test in Documents, wait for it to sync, delete it on the laptop and recover it from the OneDrive recycle bin on the web. Then delete the test file again. You now know the route back works before you ever need it.

If it did not work

Most failures come down to one of the blockers above or to a file the sync app cannot handle.

  • Nothing moved and there is no error: check for Folder Redirection and for the Prohibit User from manually redirecting Profile Folders setting. Error 0x80070005 when a user tries by hand points to the same setting.
  • The policy values are missing on the laptop: the profile is not assigned to that device or user, the laptop has not checked in yet, or the setting you chose was the wrong version. Make sure you picked the silent setting with the five sub-settings.
  • Manage backup still shows Not backed up: the person may not be signed in to OneDrive with the work account. Sign them in and check again.
  • One folder will not move: look for long paths, banned characters in names, files over 250 GB, symlinks or junction points, and open files.
  • The person sees an empty desktop after the move: their folders were previously redirected to another organisation's OneDrive. Their files are still there and need copying across.
  • The office connection slows down during rollout: lower the upload rate percentage temporarily, move fewer laptops at once and stagger start times.
  • If the laptops use Folder Redirection to a file server, are a mix of managed and unmanaged devices, or run software that needs a fixed local data folder, a short planning conversation will save time.
Technical terms explained
Folder Redirection
A Windows Group Policy feature that redirects folders such as Documents to another location, often a file server. It has to be switched off before the OneDrive Known Folder Move policies will work.
Group Policy
A Windows feature for applying settings to computers and users, usually in an Active Directory domain, from a central place.
Known Folder Move
A OneDrive feature that moves the Windows Desktop, Documents and Pictures folders into a user's OneDrive and points Windows at the new location, so files are saved to the cloud without people changing how they work.
Microsoft Entra joined
A Windows device registered directly with your Microsoft 365 organisation's Entra directory, so people can sign in with work accounts and the device can be managed through Intune.
settings catalog
A searchable list of individual device settings in Microsoft Intune. You pick settings by name and assign them to groups, rather than writing policy files.
tenant ID
The unique identifier of your organisation's Microsoft 365 tenant. The OneDrive policies use it to apply only to your organisation's accounts.

Sources and further reading

KEEP THE CONVERSATION GOING

Not sure what is hiding on your laptops?

If you would like help working out what lives only on staff laptops and getting it protected without disrupting people, tell us about your setup.

Talk to us