Close Menu
Altcoinvest
    What's Hot

    MY CHEAT SHEET IS PLAYING OUT! – BTC PRICE PREDICTION – SHOULD I BUY BTC – BITCOIN FORECAST 200K BTC

    August 30, 2026

    Crypto Regulation, Stablecoins Surge: Aug 23-30 Roundup

    August 30, 2026

    FOLD is available for trading!

    August 30, 2026
    Facebook X (Twitter) Instagram
    Altcoinvest
    • Bitcoin
    • Altcoins
    • Exchanges
    • Youtube
    • Crypto Wallets
    • Learn Crypto
    • bitcoinBitcoin(BTC)$78,538.001.20%
    • ethereumEthereum(ETH)$2,466.051.22%
    • tetherTether(USDT)$1.00-0.01%
    • binancecoinBNB(BNB)$694.860.92%
    • rippleXRP(XRP)$1.401.02%
    • usd-coinUSDC(USDC)$1.00-0.01%
    • solanaSolana(SOL)$105.401.65%
    • tronTRON(TRX)$0.3407100.63%
    • Figure HelocFigure Heloc(FIGR_HELOC)$1.00-3.82%
    • HyperliquidHyperliquid(HYPE)$83.402.66%
    Altcoinvest
    Home»Exchange»Uninstall Microsoft Graph PowerShell Module
    Uninstall Microsoft Graph PowerShell Module
    Exchange

    Uninstall Microsoft Graph PowerShell Module

    June 13, 2025
    Share
    Facebook Twitter LinkedIn Pinterest Email

    The Microsoft Graph PowerShell module is a very important module for managing tasks. However, sometimes there are issues with updating the module, or it may not work as intended. So you want to remove it completely and start with a fresh install. In this article, you will learn how to uninstall Microsoft Graph PowerShell module from the system.

    Remove Microsoft Graph PowerShell modules

    Microsoft Graph PowerShell modules (Microsoft.Graph, Microsoft.Graph.Beta) are used to manage Microsoft Entra and Microsoft 365. However, you might need to remove them completely due to module bloat, version conflicts, switching to different tooling, or simply for cleanup.

    This guide covers complete removal across:

    • Windows PowerShell 5 and PowerShell 7
    • Current user and all users
    • Modules installed via PowerShellGet and PSResourceGet

    Important: Run the commands in both Windows PowerShell and PowerShell. This is, of course, if you have PowerShell 7.x installed on the system.

    Step 1. Get installed Microsoft Graph modules

    Get a list of the Microsoft Graph PowerShell modules. Run all commands in both Windows PowerShell 5 and PowerShell 7.

    Get-InstalledModule Microsoft.Graph* -ErrorAction SilentlyContinue
    Get-InstalledPSResource Microsoft.Graph* -Scope CurrentUser -ErrorAction SilentlyContinue
    Get-InstalledPSResource Microsoft.Graph* -Scope AllUsers -ErrorAction SilentlyContinue

    Step 2. Uninstall Microsoft Graph PowerShell modules

    Uninstall Microsoft Graph PowerShell modules for the current user and all users. Run all commands in both Windows PowerShell 5 and PowerShell 7.

    Get-InstalledModule Microsoft.Graph* | Uninstall-Module -AllVersions -Force
    Get-InstalledPSResource Microsoft.Graph* -Scope CurrentUser | Uninstall-PSResource -Scope CurrentUser -SkipDependencyCheck
    Get-InstalledPSResource Microsoft.Graph* -Scope AllUsers | Uninstall-PSResource -Scope AllUsers -SkipDependencyCheck

    Step 3. Manually delete Microsoft Graph PowerShell module folders

    To ensure that everything is completely removed, you can open Windows PowerShell or PowerShell 7 as an administrator and run the script.

    Note: If you have the Windows OS in a language other than English, change the names of the folders in he script.

    # Get all module directories for both Windows PowerShell and PowerShell 7
    $paths = @(
        "$env:ProgramFiles\WindowsPowerShell\Modules", # Windows PowerShell (all users)
        "$env:USERPROFILE\Documents\WindowsPowerShell\Modules", # Windows PowerShell (current user)
        "$env:ProgramFiles\PowerShell\Modules", # PowerShell 7.x (all users)
        "$env:USERPROFILE\Documents\PowerShell\Modules" # PowerShell 7.x (current user)
    )
    
    # Go through each module directory path
    foreach ($path in $paths) {
        Get-ChildItem -Path $path -Filter "Microsoft.Graph*" -Directory -ErrorAction SilentlyContinue |
        Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
    }

    Now that everything is entirely removed from the system. You can Install Microsoft Graph PowerShell module.

    That’s it!

    Read more: Export Microsoft 365 inactive users report »

    Conclusion

    You learned how to uninstall Microsoft Graph PowerShell module. Remove the Microsoft Graph PowerShell module in both Windows PowerShell 5 and PowerShell 7, ensuring you don’t miss any steps. This way, you are sure it’s removed everywhere from the system.

    Did you enjoy this article? You may also like Force sign-out users in Microsoft 365 with PowerShell. Don’t forget to follow us and share this article.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Security Updates Exchange 2016-SE (Aug2026)

    August 11, 2026

    How to Remove OneDrive Photos App

    August 3, 2026

    MVPs around the World (2026)

    August 3, 2026

    Security Updates Exchange 2016-SE (Jul2026)

    July 15, 2026
    Add A Comment

    Comments are closed.

    Tweets by InfoAltcoinvest

    Top Posts

    Security Updates Exchange 2016-SE (Aug2026)

    August 11, 2026

    How to Remove OneDrive Photos App

    August 3, 2026

    MVPs around the World (2026)

    August 3, 2026

    ‘Risk of a Stagflationary Shock’: BlackRock Analysts Stay Underweight on Long-Term U.S. Treasuries Amid Conflict in Middle East

    March 11, 2026

    Jump Trading Sued for $4B Over Terra Collapse Role

    December 22, 2025

    Bitcoin Price Crashes To $88,000 AsJ PMorgan Stays Bullish

    December 8, 2025

    CoinHealth: Bittensor’s (TAO) Real Utility Is Deciding Which AI Gets Paid

    March 19, 2026

    Altcoinvest is a leading platform dedicated to providing the latest news and insights on the dynamic world of cryptocurrencies.

    We're social. Connect with us:

    Facebook X (Twitter)
    Top Insights

    MY CHEAT SHEET IS PLAYING OUT! – BTC PRICE PREDICTION – SHOULD I BUY BTC – BITCOIN FORECAST 200K BTC

    August 30, 2026

    Crypto Regulation, Stablecoins Surge: Aug 23-30 Roundup

    August 30, 2026

    FOLD is available for trading!

    August 30, 2026
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.


    Facebook X (Twitter)
    • Home
    • About us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions
    © 2026 altcoinvest.com

    Type above and press Enter to search. Press Esc to cancel.