A PowerShell script to completely remove OneDrive from Windows, including all associated files, folders, registry entries, and scheduled tasks.
Run PowerShell as Administrator:
Win + X
and choose Windows PowerShell (Admin)
.Execute the following commands:
Set-ExecutionPolicy Bypass -Scope Process -Force
iwr -useb https://itsnileshhere.github.io/Onedrive-Removal/onedriveRemovalScript.ps1 | iex
The script will: