If you have installed specific toolsets (like Azure or Active Directory modules), use this command to get the latest versions: Update-Module -Name ModuleName Update all installed modules: Update-Module
First, ensure the module is loaded into your session.
# Search for Updates Write-Host "Searching for updates..." $Result = $Searcher.Search("IsInstalled=0")
winget upgrade --all
The easiest way to update the PowerShell application on Windows is using (the Windows Package Manager):