From 1e807ee800b6abf517bf82db4ca4436758744788 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 19 Jul 2023 09:48:08 +0200 Subject: [PATCH] Add console output to prerequisites --- scripts/Windows/Scripts/Prerequisites.ps1 | 3 +++ 1 file changed, 3 insertions(+) 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"; } }