Intune_Deployment/Winget/winget-install.ps1

12 lines
614 B
PowerShell

#Geef de applicatie naam op bij het commmando zoals bijvoorbeeld \winget-install.ps1 thomasnordquist.MQTT-Explorer
param ($name)
#create a variable for Winget to the AppInstallerCLI and use that
#################################
# Werkt niet
# $Winget = Get-ChildItem -Path (Join-Path -Path (Join-Path -Path $env:ProgramFiles -ChildPath "WindowsApps") -ChildPath "Microsoft.DesktopAppInstaller*_x64*\AppInstallerCLI.exe")
#
#&$winget install --silent --manifest $templateFilePath
#################################
winget install --id $name --exact --silent --accept-package-agreements --accept-source-agreements