Intune App Packaging

Deploy PowerShell 7 via Intune | Win32 Packaging Guide

Published 17 March 2026 · 5 min read

PowerShell 7 is the cross-platform successor to Windows PowerShell 5.1. It installs side-by-side and provides significant improvements including better error handling, parallel pipeline execution, and modern .NET runtime. This is a very common deployment request from IT teams that want the latest PowerShell features available on managed devices.

Contents
  1. PowerShell 7 vs Windows PowerShell 5.1
  2. Download the MSI
  3. Wrap with the Content Prep Tool
  4. Add the app in Intune
  5. Install and uninstall commands
  6. Detection rule

PowerShell 7 vs Windows PowerShell 5.1

PowerShell 7 and Windows PowerShell 5.1 are separate products that run side by side:

Download the MSI

Download the latest PowerShell 7 MSI from GitHub:

https://github.com/PowerShell/PowerShell/releases

Download PowerShell-7.x.x-win-x64.msi for 64-bit Windows. Always check for the latest stable release rather than preview builds for managed deployments.

Wrap with the Content Prep Tool

IntuneWinAppUtil.exe -c "C:\AppSource\PowerShell7" -s "PowerShell-7.4.0-win-x64.msi" -o "C:\IntunePackages"

Add the app in Intune

Intune Admin Centre → Apps → Windows → + Add → Windows app (Win32)
  1. Upload the .intunewin file
  2. Name: PowerShell 7
  3. Publisher: Microsoft Corporation

Install and uninstall commands

⚙️
Program settings
MSI properties control optional features
Install commandADD_EXPLORER_CONTEXT_MENU adds right-click Open in PowerShell 7
msiexec /i "PowerShell-7.4.0-win-x64.msi" /quiet /norestart ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1
Uninstall command
msiexec /x "PowerShell-7.4.0-win-x64.msi" /quiet /norestart
Install behaviour
System
Device restart behaviour
No specific action

Detection rule

🔍
File detection rule
[]
Rule type
File
Path
C:\Program Files\PowerShell\7
File or folder name
pwsh.exe
Detection method
File or folder exists
💡
Test your detection rule first
Before deploying to users, install the app manually on a test device and verify the detection rule matches. Check the file path or registry key exists before assigning to a group.

Frequently Asked Questions

Q: How do I deploy PowerShell 7 silently via Intune?

Use: msiexec /i "PowerShell-7.x.x-win-x64.msi" /quiet /norestart ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1. Download the MSI from GitHub releases at github.com/PowerShell/PowerShell/releases.

Q: Does PowerShell 7 replace Windows PowerShell 5.1?

No. PowerShell 7 installs side-by-side with Windows PowerShell 5.1. Both can run on the same device. Windows PowerShell 5.1 remains at C:\Windows\System32\WindowsPowerShell and PowerShell 7 installs to C:\Program Files\PowerShell\7.

Q: How do I detect PowerShell 7 in Intune?

Use a file detection rule: check for pwsh.exe in C:\Program Files\PowerShell\7. You can also check the version with a PowerShell detection script that reads the ProductVersion of pwsh.exe.

Q: Can I use PowerShell 7 in Intune scripts?

Intune runs scripts using Windows PowerShell 5.1 by default. To use PowerShell 7 in Intune, you can call pwsh.exe directly in your scripts or use a wrapper script. Intune does not natively support PowerShell 7 as the script engine yet.

More App Packaging Guides
Deploy Git for Windows via Intune Deploy Wireshark via Intune
Installer typeMSI
Side-by-side with PS 5.1Yes - no conflicts
Install pathC:\Program Files\PowerShell\7
Silent installYes - /quiet /norestart
Reboot requiredNo
// need intune set up properly?
Fixed-price Intune setup for UK businesses

I set up Intune for UK small businesses at a fixed price - app deployment, compliance policies, Conditional Access, and full documentation handed over at the end.

View Packages
#intune #app-packaging #win32