Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App

Let’s discuss how to deploy the Latest version of PowerShell, PowerShell 7, using Intune through the enterprise app catalog app. We all know that deploying an app in Intune with the help of the enterprise app catalog app is very easy.

This article will give you an overview of PowerShell Core, also will discuss the best ways to install PowerShell 7 on Windows devices. It is recommended to use Winget to download and install the latest version of PowerShell 7 if you are installing it Manually. As you probably know, Winget is a command-line tool supported on Windows 11 and Windows 10 version 1709 or later.

The Enterprise App Catalog is an assemblage of pre-packaged Win32 applications that are specifically formulated and developed by Microsoft to facilitate the smooth functioning of Intune. These applications are meticulously designed to provide optimal support to the Intune platform, ensuring its seamless operation and efficient performance.

Intune Enterprise Application catalog can help you manage apps by providing simplified discovery, automated packaging and deployment, and updating outdated apps. The Intune App catalog gives admins a better experience in choosing and managing the application, language, and architecture they want to deploy.

Patch My PC

Key Differences Between PowerShell 5 and PowerShell Core

PowerShell is a versatile automation tool from Microsoft that can be used by Windows System Administrators to automate a wide range of tasks. PowerShell has become an indispensable tool for automation enthusiasts and system administrators alike. Its optimized for dealing with structured data , REST APIs, and object models.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App 1
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.01

Well, I am pretty sure most of my readers would be using PowerShell 5.1 to automate thier day to day tasks. Have you ever tried PowerShell Core (commonly referred to as PowerShell Core or PowerShell 7)? If not, this would be the best start for you to use latest version of PowerShell.

The PowerShell Core or PowerShell 7 has lots of advantages compared to PowerShell 5.1. if you are working in a cross-platform environment or need the latest features and improvements, PowerShell Core is the way to go.

Having said that, PowerShell 7 doesn’t support ISE. You might need to use Visual Studio Code while writing the scripts. However, Let’s discuss the key differences between PowerShell 5 and PowerShell 7

Windows PowerShell 5Windows PowerShell Core
Windows PowerShell 5 is built on the .NET Framework and is primarily designed for Windows environments.PowerShell Core is built on .NET Core/.NET 5+, making it cross-platform. It runs on Windows, macOS, and Linux
It is available only on Windows operating systems.It can be installed on Windows, macOS, and various Linux distributions.
It comes as the default shell in Windows 10 and Windows Server 2016.Not the default shell in any operating system but can be installed alongside other shells.
Supports a wide range of modules and cmdlets that are specifically designed for WindowsFocuses on providing a consistent set of modules and cmdlets across different platforms. Some Windows-specific modules might not be available.
No longer actively updated with new features, but still receives security updates from Microsoft.Actively developed and updated with new features and improvements.
Older scripts and modules written for earlier versions of PowerShell will work without modificationSome scripts written for Windows PowerShell 5 may require modifications to work in PowerShell Core due to differences in available modules and cmdlets.
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Table.01

Use Winget to Download and Install PowerShell Core

We will discuss how to Install the PowerShell Core on Windows Machines using Intune Enterprise App Catalog App. Before that, let’s learn how to download and install PowerShell core or PowerShell 7 using Winget. As mentioned above It is recommended to use Winget to download and install the latest version of PowerShell 7 if you are installing it Manually.

  • Open PowerShell as administrator and run the command below

winget install Microsoft.PowerShell

The above command will download and install the latest version of PowerShell 7. It may take a few seconds to finish the configuration of Windows PowerShell core. You could start using the PowerShell 7 once its successfully installed.

You could also get the PowerShell Core app in Microsoft Store. Just Open the Microsoft Store app and Type PowerShell and search. You will get the PowerShell App in Microsoft Store. Click on Get to install the PowerShell core on your machine.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.02
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.02

Install PowerShell 7 using Intune Enterprise App Catalog App

We have discussed about PowerShell Core or PowerShell 7. Let’s learn how to Install PowerShell 7 using Intune Enterprise App Catalog App.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.03
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.03

In the “Select App Type” panel, choose the “Enterprise App Catalog app” option from the drop-down menu for the Intune application type, and then click “Select.” Once you click the “Select” button, a list of new apps from the Enterprise App Catalog will be displayed.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.04
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.04

Then, Click on the Search the Enterprise App Catalog to display the search panel, which features a search bar. You could search for any app that you would like to deploy to the windows machines. Here, in this example I will search for Microsoft PowerShell Core and hit Enter. Click, Next to continue.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App 2
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.05

Once you click Next, you will be directed to the next page. The configuration page will get the diffrent version of PowerShell. Select PowerShell Core 7.4 (x64) and Click on Select to continue.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.06
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.06

After selecting the version, you will still be on the app information page. You’ll find critical details such as the app Name, Description, Publisher, App Version etc. Click Next to continue.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.07
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.07

Under the Program tab, you’ll find all the necessary details about the PowerShell Core 7.4 (x64)’s installation and removal process. This includes the Install and Uninstall command, the time required for installation, and options such as Allow available uninstall. Also, you will find return codes to indicate post-installation behavior.

You could modify the Install and Uninstall commands if necessary. Also, the return codes can be edited. However, I don’t recommend making any modifications to the Microsoft-tested commands. 

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.08
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.08
Install Command : "%SystemRoot%\System32\msiexec.exe" /i "PowerShell-7.4.6-win-x64.msi" /qn

Uninstall Command : "%SystemRoot%\System32\msiexec.exe" /X {AA89DEED-9030-494E-9F28-53A4D9B55D12} /qn

Click Next to specify the Requirements that devices must meet before the app is installed. I am not making any changes in the defaults values. Click Next to continue.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.09
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.09

Set the Detection Rules in next tab. The Enterprise Application Catalog apps include predefined Detection Rules. I am not making any changes in the defaults values. Click Next to display the Scope tags page. Add scope tags (if required) and click Next to continue.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.10
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.10

Click on Add group option and select the group for which you want to install the app in the Assignments tab. After selecting the group, you’ll notice that it gets added to the included section.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.11
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.11

Click Next and review the settings in the Review + Create section. I would recommend you thoroughly review the setting before proceeding further. After reviewing this information, click the Add Apps option to proceed.  

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.12
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.12

Monitor the Deployment Status

After adding the application, monitoring status provides information on whether the app installation succeeded or not and other details. With the help of the company portal, we can sync the app manually to the system to reduce the time period. Usually, it takes 8 hours to show the installation status on our device.

  • Select Apps All Apps and enter the application’s name in the search bar.

The Intune portal displays the recently created application. Select the PowerShell Core 7.4 (x64) and click Overview. You can view a detailed report of recent app deployments, including whether the app is InstalledNot Installed, FailedInstall Pending or Not Applicable.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.13
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.13

End User Experience

Open the company portal, click on the “Download and Update” option, and search for the app you installed. We need to search for the app PowerShell Core 7.4 (x64). The results will include details of the app, such as the version and the published date and Management Service.

Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App 3
Install PowerShell 7 on Windows Machines using Intune Enterprise App Catalog App . Fig.14

I trust that this article will significantly benefit you and your organization. I appreciate your patience in reading this post. I look forward to seeing you in the next post. Keep supporting the HTMD Community.

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

About the Author: Sujin Nelladath, Microsoft Graph MVP with over 10 years of experience in SCCM device management and Automation solutions, writes and shares his experiences with Microsoft device management technologies, Azure, DevOps and PowerShell automation.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.