initenv: add some write-host

This commit is contained in:
2024-07-07 16:42:01 -04:00
parent 102e3933f3
commit 763229fa18

View File

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