ToolBox Guide to
Deploying a PowerShell script with AirWatch is extremely simple. In this blog I'll detail how to do it with the "Product Provisioning" component of AirWatch, but this can be done via "Software Distribution" (aka Apps and Books) as well.
First, navigate to Devices--> Staging & Provisioning --> Components --> Files/Actions.
Then click the "Add Files/Actions" button at the top.
Select "Windows", then "Windows Desktop".
Fill out the Name and Description. Verify you have the correct Organization Group (OG) in the "Managed by" field.
In my example, I have a script to disable UAC.
Click the "Files" tab and the top and then "Add Files".
Browse for your PowerShell script.
Fill out the download path where you want the script to be downloaded to on the client.
Now click on the "Manifest" tab to configure the actual command to run the script.
Click "Add Action" and complete the following:
Action(s) to Perform: Run
Execution Context: System
Command Line and Arguments to run: Enter full path to Powershell script configured in previous step. No need to add any "powershell -executionbypass" commands in front of the file as the Product Provisioning engine automatically runs in bypass mode.
TimeOut: Configure as needed.
Click "Save" and then "Save" again to close the window.
Now, we need to create a "Product" that will be associated with this Files/Action item.
Go up to "Product List View" and click on "Add Product".
Select "Windows" and then "Windows Desktop".
Fill the "General Tab" with the appropriate information. Select or create a smart group in the "Assigned Groups" area.
Click on "Manifest" tab, and then "Add".
Under "Actions to Perform" select "Install Files / Actions"
Under "Files/Actions" select your previous created item. Mine is called "Disable-UAC".
You can configure additional download or install conditions in the "Conditions" tab. You can modify the deployment schedule in the "Deployment" tab. And you can also add any dependencies in the "Dependencies" tab. For now, I"m leaving all three of these default.
Once ready, click "Activate" to view final device assignment list. If everything looks good click "Activate" again to send down the script.
I'm Brooks Peppin and I love God, my family, AirWatch, VMware, EUC products, all things systems management, Windows 10, Powershell, and operating system deployment.