Add console output to prerequisites

This commit is contained in:
Manuel Thalmann 2023-07-19 09:48:08 +02:00
parent c098b6060c
commit 1e807ee800

View file

@ -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";
}
}