diff --git a/scripts/Windows/Scripts/Prerequisites.ps1 b/scripts/Windows/Scripts/Prerequisites.ps1 index cd1820aa..af5d4a36 100644 --- a/scripts/Windows/Scripts/Prerequisites.ps1 +++ b/scripts/Windows/Scripts/Prerequisites.ps1 @@ -1,5 +1,6 @@ #!/bin/pwsh if (-not (powershell -c Get-PackageProvider -ListAvailable NuGet)) { + Write-Host "Installing NuGet PackageProvider"; powershell -c Install-PackageProvider -Name NuGet -Force; } @@ -7,12 +8,14 @@ foreach ($module in @("PSWindowsUpdate", "KnownFolders")) { if (-not (Get-Module -ListAvailable $module)) { + Write-Host "Installing PowerShell Module $module"; Install-Module -AcceptLicense -Force "$module"; } } foreach ($nativeModule in @("PinnedItem")) { if (-not (powershell -c Get-Module -ListAvailable $nativeModule)) { + Write-Host "Installing Windows PowerShell Module $nativeModule"; powershell -c Install-Module -Force "$nativeModule"; } }