← Back to Home
📅 February 19, 2026 | ⏱️ 5 min read | ✍️ By Allester Padovani | 🏷️ App Management

Intune does not have a built-in way to deploy shortcuts to the public desktop (C:\Users\Public\Desktop). You can still do it by packaging a PowerShell install script (and optional icon) as a Win32 app: the script creates the shortcut on the public desktop, and Intune deploys and detects it like any other app. This guide walks through preparing the shortcut content, building the Win32 package, and adding it in Intune.

What You’ll Do

  • Create a folder with an install script (and optionally an icon), then an uninstall script that removes the shortcut.
  • Package that folder with the Microsoft Win32 Content Prep Tool so you have an .intunewin file.
  • Add the package in Intune as a Win32 app with install and uninstall commands that run the scripts, set detection to the shortcut file on the public desktop, and assign the app to users or devices.

Use the same shortcut filename (e.g. MicrosoftTeams.lnk) in the install script, uninstall script, and detection rule.

Step 1: Prepare the Shortcut for Deployment

Create two folders: one for the source content (e.g. C:\DeployShortcut) and one for the packaged output (e.g. C:\Output).

Creating folders for shortcut deployment

Optionally add an icon file (e.g. microsoft-teams.ico) to the source folder so the shortcut uses a custom icon. You can use a site like icon-icons.com or convert an image to .ico; place the .ico file in C:\DeployShortcut.

Create an install script (e.g. Shortcut-Install.ps1) that:

  • Creates C:\DeployShortcut if needed and copies the icon there (if you use one).
  • Uses WScript.Shell to create a shortcut in C:\Users\Public\Desktop with the desired TargetPath (e.g. Chrome), Arguments (e.g. a URL), IconLocation, and Description.

Example (adjust paths, icon name, shortcut name, target, and description to match your shortcut):

New-Item -Path "C:\DeployShortcut" -ItemType Directory -Force
Copy-Item ".\microsoft-teams.ico" -Destination "C:\DeployShortcut\microsoft-teams.ico"
$Shell = New-Object -ComObject WScript.Shell
$ShortCut = $Shell.CreateShortcut("C:\Users\Public\Desktop\MicrosoftTeams.lnk")
$ShortCut.TargetPath = "C:\Program Files\Google\Chrome\Application\chrome.exe"
$ShortCut.Arguments = "https://teams.microsoft.com/"
$ShortCut.IconLocation = "C:\DeployShortcut\microsoft-teams.ico"
$ShortCut.Description = "Shortcut to Microsoft Teams Web"
$ShortCut.Save()
PowerShell script for shortcut installation

Create an uninstall script (e.g. Shortcut-Uninstall.ps1) that removes the shortcut from the public desktop. Use the same shortcut name as in the install script:

Remove-Item -Path "C:\Users\Public\Desktop\MicrosoftTeams.lnk" -Force -ErrorAction SilentlyContinue
PowerShell script for shortcut uninstallation

Save both scripts (and the icon) in C:\DeployShortcut. The folder should contain the install script, the uninstall script, and the icon file if you use one.

DeployShortcut folder structure

Step 2: Create the Win32 Package

Download the Microsoft Win32 Content Prep Tool (IntuneWinAppUtil) and run it with administrator rights.

Microsoft Win32 Content Prep Tool download

When prompted, set:

  • Source folder: C:\DeployShortcut
  • Setup file: Shortcut-Install.ps1
  • Output folder: C:\Output
  • Catalog folder: N
Intune Win32 Content Prep Tool configuration

The tool creates an .intunewin file (e.g. Shortcut-Install.intunewin) in the output folder. Keep this file for the next step.

Generated IntuneWin file in output folder

Step 3: Add and Deploy the Win32 App in Intune

In the Microsoft Intune admin center, go to AppsWindowsAdd. Choose Windows app (win32) and click Select.

Adding a Win32 app in Intune

Under App package file, click Select app package file and upload the .intunewin file from C:\Output. Click OK, then Next.

Uploading IntuneWin file in Intune

On App information, set name, description, and Publisher. Click Next.

App information settings in Intune

On Program, set:

  • Install command: powershell.exe -ExecutionPolicy Bypass -File ".\Shortcut-Install.ps1"
  • Uninstall command: powershell.exe -ExecutionPolicy Bypass -File ".\Shortcut-Uninstall.ps1"
  • Install behavior: System

Click Next. On Requirements, set minimum OS (e.g. Windows 10 1607) and architecture (32-bit, 64-bit, or both). Click Next.

On Detection rules, add a rule: Rule type File, Path C:\Users\Public\Desktop, File or folder your shortcut name (e.g. MicrosoftTeams.lnk), Detection method File or folder exists. Click OK then Next. Configure Dependencies and Supersedence if needed, then Next.

Configuring detection rules for the shortcut

On Assignments, assign the app to the groups (or All Users/Devices) that should get the shortcut. Click Next, then Review + createCreate.

Once the app is deployed, the install script runs on targeted devices and creates the shortcut on the public desktop. Detection ensures Intune knows the shortcut is present; uninstall removes it if you unassign the app.

Wrap-up

You can deploy shortcuts to the public desktop with Intune by (1) preparing an install script (and optionally an icon) plus an uninstall script in a folder, (2) packaging that folder with the Win32 Content Prep Tool using the install script as the setup file, and (3) adding the package in Intune as a Win32 app with the correct install and uninstall commands and a file-based detection rule for the shortcut. Use the same shortcut name in the scripts and detection rule so install, detection, and uninstall stay in sync.