Skip to content

merill/uninstall-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uninstall-Graph PowerShell Module

Completely uninstalls and removes all Microsoft Graph PowerShell modules from the system.

PSGallery Release Version PSGallery Downloads

Installation

From PowerShell Gallery (Recommended)

To install the Uninstall-Graph module from PowerShell Gallery, use the following command:

Install-Module Uninstall-Graph

Usage

To use the Uninstall-Graph function, simply run:

Uninstall-Graph

Run without elevated permission on Windows:

Uninstall-Graph -SkipAdminCheck

Why not just use Uninstall-Module?

Microsoft Graph comes with a large number of modules and the installed versions and dependencies can sometimes cause issues when trying to update or reinstall them.

Another side effect is seeing multiple authentication prompts when using Microsoft Graph cmdlets, which can be frustrating.

Uninstalling the Microsoft Graph PowerShell modules can help resolve these issues by ensuring a clean slate.

However, the uninstallation process can be tricky because Microsoft Graph PowerShell modules are often interdependent, making it difficult to remove them cleanly in one go using the Uninstall-Module cmdlet.

This script is designed to ensure that all Microsoft Graph modules are thoroughly removed from your system, and restore your PowerShell environment to a clean state.

You can then download and do a fresh install of the latest version of Microsoft Graph PowerShell modules.

Reporting issues

If you run into any problems and edge cases with the module please open an issue.

Even better, if you find a resolution feel free to open a pull request.

I'm hoping we can iron out all the edge cases over time. Thanks 🙏

About

PowerShell module to uninstall and remove all the Microsoft Graph modules from your system.

Resources

License

Stars

Watchers

Forks