Created
September 26, 2025 16:11
-
-
Save joerodgers/3ec6fd445e51587c9671b82d749174d2 to your computer and use it in GitHub Desktop.
Uninstalls all versions of the Az modules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-InstalledModule -Name Az.* | ForEach-Object -Process { Get-InstalledModule -Name $_.Name -AllVersions | Uninstall-Module -Force -Verbose } | |
| Get-InstalledModule -Name Az -AllVersions | Uninstall-Module -Force -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment