OfficeScrubC2R

2.19.1

Complete PowerShell/C# implementation of Microsoft Office Scrub C2R tool. Provides comprehensive removal of Office 2013, 2016, 2019, and Office 365 Click-to-Run installations with 10-50x performance improvements over the original VBScript version.

Features:
- Native C# library for high-performance registry and file operations
- Parallel processing for faster exec
Complete PowerShell/C# implementation of Microsoft Office Scrub C2R tool. Provides comprehensive removal of Office 2013, 2016, 2019, and Office 365 Click-to-Run installations with 10-50x performance improvements over the original VBScript version.

Features:
- Native C# library for high-performance registry and file operations
- Parallel processing for faster execution
- Comprehensive logging and error handling
- Support for Windows 7 SP1 through Windows 11
- Compatible with PowerShell 5.1 and PowerShell 7+

Requires Administrator privileges.
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name OfficeScrubC2R -RequiredVersion 2.19.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name OfficeScrubC2R -Version 2.19.1

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Calvin. All rights reserved. MIT License. Derived from Microsoft OffScrubC2R.vbs.

Package Details

Author(s)

  • Calvin

Tags

Office Microsoft ClickToRun C2R Uninstall Removal Scrub Office365 O365 Administration Maintenance Windows

Functions

Invoke-OfficeScrubC2R Get-InstalledOfficeProducts Test-IsC2R Initialize-Environment Stop-OfficeProcesses

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

# Release Notes v2.19.0

## Overview
Complete PowerShell/C# port of Microsoft's OffScrubC2R.vbs v2.19 with significant performance improvements.

## What's New
- Native C# library for high-performance operations (10-50x faster)
- Pre-compiled DLL with automatic fallback to source compilation
- Parallel processing for registry and file operations
- Comprehensive logging and error handling
- Support for PowerShell 7+ and Windows PowerShell 5.1

## Breaking Changes
- Requires Administrator privileges
- Minimum PowerShell version is 5.1
- .NET Framework 4.5 or later required

## Known Issues
- None

For full changelog, see CHANGELOG.md

FileList

Version History

Version Downloads Last updated
2.19.2 8 10/5/2025
2.19.1 (current version) 5 10/5/2025
2.19.0 6 10/5/2025