Silent enrollment requires command-line entries or a BAT file to control how the AirWatch Agent downloads and installs onto the device.

The following table lists all the possible enrollment parameters you can enter into a command line or into a BAT file, and the respective values for each parameter. Parameters highlighted in blue and green are the minimum parameters required for enrollment. Blue designates image only. Blue plus green designates user enrollment.

Enrollment Parameters Values to Add to Parameter
/ENROLL

Select 'Y' to enroll.

Select 'N' for image only.

/IMAGE

Select 'Y' for image.

Select 'N' for enrollment.

/SERVER Enter the enrollment URL.
/LGName Enter organization group name.
/USERNAME

Enter the user name for the user being enrolled or the staging user name if staging the device on the behalf of a user.

/PASSWORD

Enter the password for the user being enrolled or the staging user password if staging the device on the behalf of a user.

/STAGEUSERNAME Enter user name for the enrolling user.
/SECURITYTYPE

Needed if user account is added to AirWatch console during enrollment process:

  • Select 'D' for Directory.
  • Select 'B' for Basic User type.
/STAGEEMAILUSRNAME* Enter the email user name for the user being enrolled.
/STAGEPASSWORD Enter the password for the user being enrolled.
/STAGEEMAIL* Enter the email address for the user being enrolled.
/DEVICEOWNERSHIPTYPE*

Select 'CD' for Corporate Dedicated.

Select 'CS' for Corporate Shared.

Select 'EO' for Employee Owned.

Select 'N' for None.

/INSTALLDIR*

Enter the directory path if you want to change installation path.

Note:

If this parameter is not present, the AirWatch Agent uses the default path: C:\Program Files (x86)\AirWatch.

Items denoted with an asterisk (*) are optional.

Examples of Silent Enrollment

Below are examples of various use cases using enrollment parameters and the values that you can enter into a command line or use to create a BAT file. Initiating any one of these examples silently enrolls the Windows device without prompting the user to select any of the acknowledgment buttons.

Agent Install for Image Only Without Enrollment

The following is an example of installing the agent for image only without enrollment using minimum parameters required for image only.

AirwatchAgent.msi /quiet ENROLL =N IMAGE =Y

Basic User Enrollment

The following is an example of using minimum parameters required for basic enrollment only:

AirwatchAgent.msi /quiet ENROLL =Y IMAGE =n SERVER =companyURL.com LGName =locationgroupid USERNAME =TestUsr PASSWORD =test

AirWatch Agent Installed Elsewhere

The following is an example of the AirwatchAgent.msi located in a different location:

C:\AirwatchAgent.msi /quiet ENROLL=Y IMAGE=n SERVER=companyURL.com LGName=locationgroupid USERNAME=TestUsr PASSWORD=test

Installation Directory and AirWatch Agent on Network Drive

The following is an example of the installation directory parameter with the AirWatch Agent on a network drive.

Important:

Add extra quotes for the INSTALLDIR parameter when there is space within the parameter.

Q:\AirwatchAgent.msi /quiet INSTALLDIR=\"E:\Install Win32\" ENROLL=Y IMAGE=n SERVER=companyURL.com LGName=locationgroupid USERNAME=TestUsr PASSWORD=test

All Available Parameters and Values

The following is an example of the syntax using all available parameters and values shown in the previous table.

<AirwatchAgent.msi> /quiet INSTALLDIR =\"<Directory Path>"  ENROLL =<Y/N> IMAGE =<Y/N> SERVER =<CompanyURL> LGNAME =<Location Group ID> USERNAME =<Username> PASSWORD =<Username Password> STAGEUSERNAME =<Stager Username> SECURITYTYPE =<D/B> STAGEEMAILUSRNAME =<User Enrolling> STAGEPASSWORD =<Password for User Enrolling> STAGEEMAIL =<Email Address for User Enrolling> DEVICEOWNERSHIPTYPE =<CD/CS/EO/N>