Tip: Upgrade 4.0.5 to 4.0.6: Duplicate CMDlets PowerShell ISE

Upgrading to 4.0.6 results in duplicate entries for all PowerShell cmdlets in the PowerShell ISE.

# Check if the module is installed
$module = Get-InstalledModule -Name PSAppDeployToolkit -ErrorAction SilentlyContinue

# If the module is installed, uninstall it
if ($module) {
Uninstall-Module -Name PSAppDeployToolkit -AllVersions -Force
Write-Output "The PSAppDeployToolkit module has been uninstalled."
} else {
Write-Output "The PSAppDeployToolkit module is not installed."
}

# Remove the module from the current session if it is loaded
Remove-Module -Name PSAppDeployToolkit -ErrorAction SilentlyContinue

Reinstall
Install-Module -Name PSAppDeployToolkit

In the presentation, you used a different editor. What is it called?

I’m honestly not sure what’s going on here, but the ISE is a pretty dead platform… Maybe consider moving ont VS Code or something more modern?

3 Likes