Update-Module -Name ModuleName -Force To update PowerShell itself (PowerShell 7+):
winget upgrade Microsoft.PowerShell Or via the MSI/package manager:
Get-InstalledModule | Update-Module -Force Or to update a specific module:
Update Powershell Command (2025)
Update-Module -Name ModuleName -Force To update PowerShell itself (PowerShell 7+):
winget upgrade Microsoft.PowerShell Or via the MSI/package manager: update powershell command
Get-InstalledModule | Update-Module -Force Or to update a specific module: update powershell command