mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
initenv: add some write-host
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# Ensure that WinGet PS Module is available
|
# Ensure that WinGet PS Module is available
|
||||||
if (!(Get-Module -ListAvailable -Name Microsoft.WinGet.Client)) {
|
if (!(Get-Module -ListAvailable -Name Microsoft.WinGet.Client)) {
|
||||||
|
Write-Host "Installing PS Module Microsoft.WinGet.Client"
|
||||||
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
|
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
|
||||||
Install-Module -Name Microsoft.WinGet.Client -Repository "PSGallery"
|
Install-Module -Name Microsoft.WinGet.Client -Repository "PSGallery"
|
||||||
}
|
}
|
||||||
@@ -9,6 +10,7 @@ $InstalledApplications = Get-WmiObject -Class Win32_Product
|
|||||||
|
|
||||||
# Install PowerShell Core
|
# Install PowerShell Core
|
||||||
if (!(Get-WinGetPackage -Source "winget" -MatchOption "Equals" -Id "Microsoft.PowerShell")) {
|
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"
|
Install-WinGetPackage -Source "winget" -MatchOption "Equals" -Id "Microsoft.PowerShell" -Override "/passive ENABLE_PSREMOTING=1 ADD_PATH=1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user