Free Trial

Bulk Installation of Agents in AWS Instances

The following are the steps to install agents in bulk in AWS Instances.

  1. Create an S3 Bucket in the region where you want to deploy the agents.
  2. In the product web console, navigate to the Agent tab > Computers > Download Agent.
  3. Upload Localagent.exe to the created bucket and set the permission as public.
  4. Create an IAM role for SSM.
    • In the IAM console, navigate to Roles > Create Roles.
    • In Select type of trusted entity, choose AWS service.
    • Select the service EC2.
    • If the specified service has only one use case, it is selected automatically. Then choose NEXT: Permissions.

    Note: Use cases are defined by the service to include the trust policy that the service requires.

    • In the Create role window (as shown in the figure below), search for AmazonEC2RoleForSSM and select it.

    Agent Installation - AWS Instances

    Note: You can also add AmazonEC2RoleForSSM to an already existing IAM role.

    • Choose NEXT: Review.
  5. Change EC2 settings.
    • Select the existing instance.
    • Choose Action at the top of the screen.
    • Choose Instance settings and assign the created role.
  6. Run the command to install the agents in AWS Instances.
    • In the AWS Systems Manager console, choose Run Command.
    • Run the following command:
     New-Item -ItemType directory -Path C:\LocalOffice\localsetup 
    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("BUCKETPATH/UEMSAgent.msi",
    "C:\LocalOffice\localsetup\UEMSAgent.msi")
    $WebClient.DownloadFile("BUCKETPATH/UEMSAgent.mst",
    "C:\LocalOffice\localsetup\UEMSAgent.mst")
    $WebClient.DownloadFile("BUCKETPATH/setup.bat",
    "C:\LocalOffice\localsetup\setup.bat") cmd /c msiexec /i
    C:\LocalOffice\localsetup\UEMSAgent.msi REBOOT="REALLYSUPPRESS"
    MSIRESTARTMANAGERCONTROL="Disable"
    TRANSFORMS=C:\LocalOffice\localsetup\UEMSAgent.mst ENABLESILENT=yes /qn

    Note: Replace BUCKETPATH with the actual object URL.

You have now successfully installed agents in AWS Instances.

Was this article helpful?

Thank you for your feedback!

Sorry about that!

By clicking "Submit", you agree to processing of personal data according to thePrivacy Policy.
  Back to Top