We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8dadb commit d682b93Copy full SHA for d682b93
scripts/helpers/Remove-PSModule.ps1
@@ -33,7 +33,7 @@
33
Write-Host " - Removing command [$($command.Name)]"
34
$command | Remove-Item -Force
35
}
36
- $installedModule = Get-InstalledPSResource | Where-Object { $_.Name -eq $Name }
+ $installedModule = Get-InstalledPSResource -ErrorAction SilentlyContinue | Where-Object { $_.Name -eq $Name }
37
Write-Host " - Found [$($installedModule.Count)] installed modules to remove"
38
foreach ($module in $installedModule) {
39
Write-Host " - Uninstalling module [$($module.Name)]"
0 commit comments