mirror of
https://github.com/KiTTYsh/dotfiles.git
synced 2025-12-09 20:59:16 -05:00
initenv: ensure that winget module is available
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# Ensure that WinGet PS Module is available
|
||||
if (!(Get-Module -ListAvailable -Name Microsoft.WinGet.Client)) {
|
||||
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
|
||||
Install-Module -Name Microsoft.WinGet.Client -Repository "PSGallery"
|
||||
}
|
||||
|
||||
# Get installed applications so that we can identify what needs to be installed
|
||||
$InstalledApplications = Get-WmiObject -Class Win32_Product
|
||||
|
||||
|
||||
Reference in New Issue
Block a user