WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications.

ComputerHabit 1,011 Reputation points
2025-02-14T15:34:54.99+00:00

I can't seem to update modules. I do not know why I keep getting this error.

WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications.

I'm trying to update Exchange management shell.

Install-Module -Name ExchangeOnlineManagement -Force -AllowClobber

I've tried updating all I can. I've tried what threads and Copilot tell me to and I can't get around it. There is nothing running that would block this.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,627 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,596 Reputation points
    2025-02-14T20:59:52.3133333+00:00

    Search for "WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use" and you'll find several posts (mostly in StackOverflow) that have different ways of addressing this.

    Another process may be using the module (like VS Code, for example), or the module may have been installed as "Per user".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.