We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aff2147 commit 95f4b62Copy full SHA for 95f4b62
Update-AllPowerShellModules.ps1
@@ -42,8 +42,6 @@ if ($SimulationMode) {
42
Write-Host -ForegroundColor yellow 'Simulation mode is ON, nothing will be installed / removed / updated'
43
}
44
45
-Write-Host -ForegroundColor Cyan 'Get all PowerShell modules'
46
-
47
function Remove-OldPowerShellModules {
48
param (
49
[string]$ModuleName,
@@ -67,9 +65,11 @@ function Remove-OldPowerShellModules {
67
65
68
66
69
if ($IncludedModules) {
+ Write-Host -ForegroundColor Cyan "Get PowerShell modules like $IncludedModules"
70
$modules = Get-InstalledModule | Where-Object { $_.Name -like $IncludedModules}
71
72
else {
+ Write-Host -ForegroundColor Cyan 'Get all PowerShell modules'
73
$modules = Get-InstalledModule
74
75
0 commit comments