This is a blog about a script which removes OneDrive Personal and installs OneDrive Machine (All users) Install. You can use this if you want to deploy OneDrive on Windows Virtual Desktop for example.

Script Syntax

Script Example

Firstly, you can run the script on any machine. It does not matter if OneDrive is running, already installed or not installed. The OneDrive setup located in:


Is always available in Windows 10.

When you run the script this is the output:

OneDrive machine install script deployment


WVD Delete hostpool script

Flow triggered DevOps Build

OneDrive Microsoft Docs

Related Posts

One thought on “OneDrive Machine Install Script

Leave a Reply

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