Back to Documentation

Winget Integration Guide

Create PSADT packages from Winget with optional automatic updates.

What is Winget Mode?

Winget Mode allows you to create PSADT deployment packages directly from the Windows Package Manager (Winget) repository. Instead of uploading an installer file, you search for an application in Winget and the tool generates a complete deployment package.

Key Benefits

  • ✓ No need to download installers manually
  • ✓ Always get the latest version from Winget
  • ✓ Optional automatic updates via scheduled tasks
  • ✓ Verified package sources

How to Use Winget Mode

1

Search for an Application

Select "Winget Package" mode and search for your application. You can:

  • Choose from popular applications (Chrome, Firefox, 7-Zip, etc.)
  • Search by application name
  • Search by Winget Package ID (e.g., "Google.Chrome")
2

Select the Package

Review the search results and select your package. The tool shows:

  • Package name and publisher
  • Latest version available
  • Official vs. community package indicator
3

Configure Auto-Update (Optional)

Enable automatic updates to keep the application current:

Creates a scheduled task that runs daily to check for updates.

How Auto-Update Works

Scheduled Task

When auto-update is enabled, the PSADT script creates a Windows Scheduled Task that runs daily at a random time between 10:00 and 14:00.

# The scheduled task runs this command:
winget upgrade --id "Package.ID" --silent --accept-source-agreements --accept-package-agreements --scope machine
Silent Updates
No user interaction required
Machine Scope
Installs for all users
Runs as SYSTEM
Full admin privileges
Daily Schedule
Automatic version checks

Requirements

Important Notes

  • Winget must be installed on the target devices. Windows 11 includes Winget by default. For Windows 10, ensure the App Installer package is installed.
  • Internet access is required during installation and for auto-updates.
  • SYSTEM context execution requires Winget to be available system-wide.

Installation Scope (Machine vs User)

When selecting a Winget package, you can choose the installation scope. This determines where the application is installed and which users can access it.

Machine Scope

Recommended

Installs the application for all users on the device.

  • Installs to C:\Program Files
  • Works with Intune SYSTEM context
  • Available to all users

User Scope

Installs the application only for the current user.

  • Installs to %LOCALAPPDATA%
  • Requires Intune "User" install behavior
  • Only for the logged-in user

Automatic Scope Detection

The tool automatically detects which scopes are supported by each package. If a package only supports one scope, it will be selected automatically. When both scopes are available, you can choose your preferred option.

User Scope in Intune

When using User scope, you must configure Intune correctly:

  1. In Intune, go to your app assignment settings
  2. Set "Install behavior" to "User" (not "System")
  3. The installation will run in the user's context

Note: If you use User scope with SYSTEM install behavior, the installation will fail because there is no active user profile in SYSTEM context.

Popular Applications

These applications are pre-configured for quick deployment:

Google Chrome
7-Zip
Mozilla Firefox
VLC Media Player
Notepad++
Adobe Reader
Visual Studio Code
Zoom
Microsoft Teams
Slack
Git
Python

Next Steps