Contact Us

contact us: [email protected]

  1. Write a PowerShell script to install a Win32 app.
  2. Upload the script to Intune as a Device Configuration profile.
  3. Configure the script runtime settings.
  4. Assign the script to an Azure AD group of users or devices.
  5. The script runs on the assigned group.
  6. You can then use Intune to monitor the run status of your script.

To create a PowerShell script policy, use these steps.

  1. Open Microsoft Intune admin center.
  2. Select Devices, and then under Policy, click Scripts.
  3. On the Devices | Scripts page, click Add, and select Windows 10 and later. Note that you can also create scripts for Linux and macOS.
  4. 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.
  5. Click Next.
  6. 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.