From 763229fa187fee694ee11dbeff60a1e21b6ec35e Mon Sep 17 00:00:00 2001 From: Kitty Cat Date: Sun, 7 Jul 2024 16:42:01 -0400 Subject: [PATCH] initenv: add some write-host --- initenv.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/initenv.ps1 b/initenv.ps1 index bbded61..0e64f02 100644 --- a/initenv.ps1 +++ b/initenv.ps1 @@ -1,5 +1,6 @@ # Ensure that WinGet PS Module is available if (!(Get-Module -ListAvailable -Name Microsoft.WinGet.Client)) { + Write-Host "Installing PS Module Microsoft.WinGet.Client" Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted Install-Module -Name Microsoft.WinGet.Client -Repository "PSGallery" } @@ -9,6 +10,7 @@ $InstalledApplications = Get-WmiObject -Class Win32_Product # Install PowerShell Core if (!(Get-WinGetPackage -Source "winget" -MatchOption "Equals" -Id "Microsoft.PowerShell")) { + Write-Host "Installing PowerShell Core" Install-WinGetPackage -Source "winget" -MatchOption "Equals" -Id "Microsoft.PowerShell" -Override "/passive ENABLE_PSREMOTING=1 ADD_PATH=1" }