Hi everyone! I’m looking to deploy PowerShell 7 on a fleet of Windows devices using Hexnode via MSI installation. Any advice on how to get this done smoothly?
MSI installation of PowerShell on WindowsSolved
Tags
Replies (4)
There are a bunch of ways to install PowerShell on Windows. Curious, why go with MSI specifically?
For us, MSI just works better with Windows servers and big deployments. It helps manage installs across lots of devices without hassle.
Hi @yu-yan, welcome to Hexnode Connect!
Let me walk you through two ways to deploy PowerShell 7 on Windows using the MSI installer.
- Using Install Application action or Required Apps policy:
- On your Hexnode UEM console, navigate to the Apps tab.
- Click on Local Apps > + Add Apps > Enterprise App.
- Choose Windows as the platform.
- Provide the app name (e.g., PowerShell 7), and select MSI file as the upload method. Upload the MSI file you want to deploy. You can download the PowerShell 7 MSI files from here.
- Once the MSI is uploaded, you can choose either of the two options:
- Install Application: Go to Manage > Devices > Action > Install Application and select PowerShell from the list.
- Required Apps: Alternatively, go to Policies > New Policy > Windows > Required Apps and select PowerShell as the required app for deployment.
- Using Scripts:
The following script can be used to deploy PowerShell via Hexnode:
Install PowerShell on Windows devices1234$msiUrl = "https://example.com/path/to/PowerShell-installer.msi"$msiPath = "$env:TEMP\PowerShell-7.4.1-win-x64.msi"Invoke-WebRequest -Uri $msiUrl -OutFile $msiPathStart-Process msiexec.exe -ArgumentList @( "/i "$msiPath"", "/quiet", "/norestart", "ADD_PATH=1", "ENABLE_PSREMOTING=1", "ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1", "ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1", "REGISTER_MANIFEST=1" ) -WaitReplace “https://example.com/path/to/PowerShell-installer.msi” with the URL that corresponds to your device architecture, such as x64, x86, or arm64.
To execute this on a target device:
- On your Hexnode UEM console, navigate to the Manage tab.
- Select the Windows device, and click on Actions > Execute Custom Script.
- Upload the script and execute it.
This script will automatically download and install PowerShell 7 on the device. Let us know if you have any questions!
Regards,
Sienna Carter
Hexnode UEM
Thanks, I’ll give it a try!