Skip to content

Commit 445ab7b

Browse files
author
Bastien Perez - ITPro-Tips.com
committed
Update Update-AllPowerShellModules.ps1
1 parent 298495a commit 445ab7b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Update-AllPowerShellModules.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# https://itpro-tips.com/2020/update-all-powershell-modules-at-once/
22
# https://itpro-tips.com/2020/mettre-a-jour-tous-les-modules-powershell-en-une-fois/
33

4-
# This script provide informations about the module version (current and the latest available on PowerShell Gallery) and update to the latest version
4+
# This script provides informations about the module version (current and the latest available on PowerShell Gallery) and update to the latest version
55
# If you have a module with two or more versions, the script delete them and reinstall only the latest.
66

7-
# PowerShell 5.0 pour PowerShell Gallery
7+
# PowerShell 5.0 for PowerShell Gallery
88
#Requires -Version 5.0
99
#Requires -RunAsAdministrator
1010

@@ -13,8 +13,8 @@ Write-Host -ForegroundColor cyan 'Define PowerShell to use TLS1.2 in this sessio
1313

1414
# if needed
1515
# Register PSGallery PSprovider and set as Trusted source
16-
#Register-PSRepository -Default -ErrorAction SilentlyContinue
17-
#Set-PSRepository -Name PSGallery -InstallationPolicy trusted -ErrorAction SilentlyContinue
16+
# Register-PSRepository -Default -ErrorAction SilentlyContinue
17+
# Set-PSRepository -Name PSGallery -InstallationPolicy trusted -ErrorAction SilentlyContinue
1818

1919
$modules = Get-InstalledModule
2020

@@ -69,4 +69,4 @@ foreach ($module in $modules.Name) {
6969
Write-Host -ForegroundColor red "$_.Exception.Message"
7070
}
7171
}
72-
}
72+
}

0 commit comments

Comments
 (0)