contact us: [email protected]
- Write a PowerShell script to install a Win32 app.
- Upload the script to Intune as a Device Configuration profile.
- Configure the script runtime settings.
- Assign the script to an Azure AD group of users or devices.
- The script runs on the assigned group.
- You can then use Intune to monitor the run status of your script.
To create a PowerShell script policy, use these steps.
- Open Microsoft Intune admin center.
- Select Devices, and then under Policy, click Scripts.
- On the Devices | Scripts page, click Add, and select Windows 10 and later. Note that you can also create scripts for Linux and macOS.
- On the Add PowerShell script page, enter the following properties on the Basics tab:
• Name Enter a descriptive name for the script.
• Description Enter a description for the script. - Click Next.
- On the Script settings tab, shown in Figure 3-22, enter the following properties:
• Script location Browse to the PowerShell script. The script must be less than 200 KB (ASCII).
• Run this script using the logged on credentials Select Yes to run the script with the user’s credentials on the device, or choose No (default) to run the script in the system context.
• Enforce script signature check Select Yes or No (default).
• Run script in 64 bit PowerShell Host Select Yes to run the script in a 64-bit PowerShell host or select No (default) to run the script in a 32-bit PowerShell host.