Can Windows Server Backup Target OneDrive Directly?
Question details
The user is asking if Windows Server Backup can be configured via PowerShell to save backup files directly to a OneDrive location rather than writing them to a local drive first.

- Product
- Windows Server Backup
- Device & OS
- Windows Server 2019
- Scenario
- Modifying a PowerShell backup script (Start-WBBackup) to use OneDrive as the direct network path target.
- Observed behavior
- Windows Server Backup requires a standard local volume or a UNC network path for its backup target, preventing direct targeting of OneDrive cloud URLs.
Ensure you have administrator privileges on Windows Server 2019 and that the OneDrive sync client is installed and configured for the appropriate user account.
Backup to a Local Folder and Sync with OneDrive
Since Windows Server Backup does not natively support direct cloud targets, the most reliable workaround is to back up to a local directory synchronized with OneDrive.
Windows Server Backup network targets require a valid UNC network path. Cloud storage locations do not function as native network paths, so you must stage the backup locally before allowing the sync client to upload the files to the cloud.
Install the OneDrive sync client on your server and sign in. Choose a local directory (e.g., C:\OneDriveSync) to act as your synchronization folder.
Modify your existing PowerShell script to target the local sync folder. Change your path variable to reflect the local directory, such as: $npath = "C:\OneDriveSync\ServerBackup\"
Update the New-WBBackupTarget command to use the local file path instead of the -NetworkPath parameter, or use a local network share that points to the OneDrive folder.
Run Start-WBBackup. The backup files will be written to the local drive and the OneDrive client will automatically upload them to the cloud in the background.

Map OneDrive as a Network Drive
You can map your OneDrive account as a network drive using WebDAV, which allows Windows Server Backup to treat the cloud location as a standard network path.
Boost Your Productivity with WPS Office
While managing server backups requires specialized IT tools, handling your daily documents, spreadsheets, and presentations shouldn't be complicated. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office for your administrative and business tasks.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package.
- 2. Install the Software: Run the downloaded executable and follow the simple on-screen instructions to complete the setup.
- 3. Start Creating: Launch WPS Office to immediately open, edit, and save your Microsoft Office-formatted documents.

Frequently Asked Questions
Why can't I use a OneDrive URL directly in Start-WBBackup?
Windows Server Backup is designed to write to standard local disk volumes or SMB network share paths (UNC paths). It does not natively support HTTP or HTTPS cloud URLs as backup targets.
Does the OneDrive sync client run as a service on Windows Server?
By default, the OneDrive sync client runs per-user and requires an active user session. To run it as a background service on a server without a logged-in user, you may need to utilize third-party wrapper tools or configure specific scheduled tasks.
Can I use third-party cloud backup tools instead of Windows Server Backup?
Yes. Many third-party backup solutions are designed specifically for server environments and natively support direct backups to cloud storage services like OneDrive, AWS, or Azure without requiring local staging.




