Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itsnileshhere/onedrive-removal

PowerShell script to remove OneDrive from Windows 10/11
https://github.com/itsnileshhere/onedrive-removal

onedrive powershell script windows-10 windows-11

Last synced: 28 days ago
JSON representation

PowerShell script to remove OneDrive from Windows 10/11

Awesome Lists containing this project

README

        

# OneDrive Removal Script

A PowerShell script to completely remove OneDrive from Windows, including all associated files, folders, registry entries, and scheduled tasks.

## Prerequisites

- This script requires **administrator privileges** to run properly.
- Ensure **PowerShell 5.1** or higher is installed on your system.

## Usage

1. **Run PowerShell as Administrator**:
- Press `Win + X` and choose `Windows PowerShell (Admin)`.

2. **Execute the following commands**:
```{powershell}
Set-ExecutionPolicy Bypass -Scope Process -Force
iwr -useb https://itsnileshhere.github.io/Onedrive-Removal/onedriveRemovalScript.ps1 | iex
```

## Important Details

**The script will**:

* Terminate OneDrive process.
* Uninstall OneDrive from system.
* Copy files from OneDrive to user profile folder.
* Remove OneDrive leftovers.
* Revert user folders back to their default locations.

## Credits
- [winutil](https://github.com/ChrisTitusTech/winutil)
- [Windows 11 Forum](https://www.elevenforum.com/t/how-to-completely-remove-onedrive.12084/)