Execute the SCCM App Migration PowerShell Script

We will now execute the SCCM App Migration script to query our list of available applications in SCCM and determine which applications to port to AirWatch.   This will allow us to quickly migrate any existing applications we wish to keep while ignoring applications that do not need to be transferred.

The SCCM App Migration script has already been downloaded and included for you on the Desktop of your SCCM Server under the SCCM App Migration folder.  Outside of the lab, this script is available for download at https://code.vmware.com/samples.

1. Open the PowerShell Script

  1. Click the File Explorer icon on the task bar.
  2. Click Desktop.
  3. Click SCCM App Migration.
  4. Right-click the Migrate-SCCMApps-AirWatch.ps1 file.
  5. Click Run with PowerShell.

2. Enter PowerShell Script Parameters

In the PowerShell terminal,

  1. Enter LAB: for the SCCMSiteCode.  Press Enter.
  2. Enter https://hol.awmdm.com for the AWServer.  Press Enter.
  3. Enter your VLP username, which is the same username used to login to the AirWatch Console, for the SCCMSiteCode.  Press Enter.
  4. Enter VMware1! for the password.  Press Enter.

Continue to the next step for instructions on obtaining the tenantAPIKey from the AirWatch Console.

3. Retrieve the REST API Key

In the AirWatch Console,

  1. Click Groups & Settings.
  2. Click All Settings.

3.1. Copy the REST API Key

  1. Click System.
  2. Click Advanced.
  3. Click API.
  4. Click REST API.
  5. Click and drag to highlight the API Key text for the AirWatchAPI service.
  6. Right-click and select Copy.
  7. Click Close.

3.2. Paste the Copied API Key

  1. Return to the PowerShell Terminal by clicking the PowerShell icon from the task bar.
  2. Paste the copied API Key for the tenantAPIKey parameter by right-clicking, then press Enter.

4. Retrieve the Organization Group Numerical ID

Return to the AirWatch Console.

  1. Click Groups & Settings.
  2. Click Groups.
  3. Click Organization Groups.
  4. Click Organization Group Details.
  5. The numerical ID at the end of the URL is your Organization Group Numerical ID.  Highlight this text and right-click.
  6. Click Copy.

4.1. Paste the Copied Organization Group Numerical ID

  1. Return to the PowerShell Terminal by clicking the PowerShell icon from the task bar.
  2. Paste the copied Organization Group Numerical ID for the groupID parameter by right-clicking, then press Enter.

4.2. Generate Application Report

  1. For the Selection input, enter 1 and press Enter to run the Generate MSI and EXE App Report option.  
  2. This option creates a .csv file which contains details on the applications to be imported into AirWatch from SCCM

Next, let's review the details of this file.

4.3. Open the SCCM Applications Report

  1. Click the File Explorer icon from the task bar.
  2. Click Desktop.
  3. Click SCCM App Migration.
  4. Click App-Migration-Output.
  5. Right-click the {date}-SCCM-Apps-Report.csv file.
  6. Click Edit.

4.4. Review the SCCM Applications Report CSV

Review the contents of the csv file as desired.  This information will be used to migrate the applications from SCCM to AirWatch.  Leave the Notepad file opened, as we will be using the file contents in an upcoming step.

Minimize PowerShell but do not close it - we will this PowerShell session in the next few steps.

Note - If you didn't complete Module 1, you will only see two applications - 7-Zip and Notepad Plus.  If you did complete Module 1, you will also see the AirWatch Enrollment application we configured.

0 Comments

Add your comment

E-Mail me when someone replies to this comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.