Installing an eG VM Agent Using SCCM

System Center Configuration Manager (SCCM) is a systems management software product developed by Microsoft for managing large groups of computers running Windows NT, Windows Embedded, OS X, Linux or UNIX, as well as Windows Phone, Symbian, iOS and Android mobile operating systems. Configuration Manager provides remote control, patch management, software distribution, operating system deployment, network access protection and hardware and software inventory.

Like many other software, the eG VM Agent software can also be distributed or remotely deployed on multiple cloud desktops using the SCCM.

For this, you should use SCCM to run the VM agent installation PowerShell script on each target.

To achieve this, follow the steps below:

For this, follow the steps below:

  1. Open the SCCM Console, and then click the Software Library option in the left panel of the console. The right panel will then change as displayed by Figure 7.

    Software Library Tab Page in SCCM Console

    Figure 7 : Clicking on the Software Library option in the left panel of the SCCM Home Page

  2. Now, proceed to create a script. For that, right-click on the Scripts option in left panel, and pick the Create Script option from the menu that pops out (see Figure 8).

    Choosing Create Script from Scripts Menu

    Figure 8 : Selecting the Create Script option from the right-click menu of the Scripts option

  3. This will open Figure 9. Here, assign a unique Script name and Script description. Then, pick PowerShell as the Script language, and indicate the Script timeout period.

    Figure 9 : Creating the script

  4. Now, you need to provide the PowerShell Script that you want to create in SCCM for installing the eG VM agent. To obtain this script, open a browser, connect to the eG management console, and login to the manager as a user who has been assigned the Admin role. Figure 10 will then appear. Click on the icon at the right, top corner (as highlighted in Figure 10) to download the eG agent/VM agent.

    Clicking on the Download eG Enterprise Agent Icon

    Figure 10 : Downloading the eG agent/VM agent from the eG manager

  5. Figure 11 will then appear. To install the eG VM agent, click on the light-weight VM agent link at the bottom of the Download page, as indicated by Figure 11.

    Choosing to Install the eG VM Agent

    Figure 11 : Clicking on the light-weight VM agent link to download the VM agent

  6. This will invoke Figure 12. To view the proprietary PowerShell script that eG Enterprise provides for installing the eG VM agent, first select Command Line (One-liner) as the Installation Method and Windows as the Operating System. Then, from the Environment drop-down, pick the flavor of Windows for which you need the script.

    Figure 12 : Viewing the VM agent installation script

  7. The PowerShell script will then be displayed in the text area below, as indicated by Figure 12. Click on the Copy button therein to copy the script.

  8. Now, return to Figure 9 in the SCCM console. Paste the copied script in the Script text area therein and click the Next button to proceed.

  9. Figure 13 will then appear displaying the script specifications. Review the script settings, and if satisfied , click Next in Figure 13 to move on.

    Reviewing the Script Summary

    Figure 13 : Reviewing the script specifications

  10. This will begin script creation. Once the script is successfully created in the SCCM console, Figure 14 will appear confirming the same.

    Message Confirming Successful Script Creation

    Figure 14 : Successful completion of the Create Script task

  11. Finally, click the Close button in Figure 14 to exit the wizard. Figure 15 will appear, where the script you created will be displayed.

    Figure 15 : The eG VM Agent Install script displayed in the list of scripts

  12. Before running the script, you need to have it approved. In Microsoft SCCM, requiring a script to be approved before execution is a fundamental security mechanism designed to protect your infrastructure. Because the Run Scripts feature executes PowerShell code across thousands of client machines in near real-time, the approval workflow acts as a critical guardrail. As is evident from the Approval State displayed for the VM agent install script (see Figure 9), the script is 'waiting for approval'. To initiate approval for the script, select the script in Figure 15, right-click on it, and select the Approve/Deny option (see Figure 16).

    Choosing the Approve Option from Right-click Menu

    Figure 16 : Selecting the Approve/Deny option

  13. Figure 17 will then appear. The Script Details will be displayed here. Click Next to continue.

    Viewing Details of Script to be Approved

    Figure 17 : Viewing Script Details for Approval

  14. Figure 18 will appear. Pick the Approve option in Figure 18, provide an Approve Comment if necessary, and click Next to proceed.

    Approving the Script

    Figure 18 : Approving the Script

  15. When Figure 19 appears, review the script Summary, and if OK, proceed with the approval process by clicking Next.

    Reviewing Script Summary for Approval

    Figure 19 : Reviewing Script Summary for Approval

  16. Upon successful script approval, Figure 20 appears. Now, click on Close in Figure 20 to exit the wizard.

    Successful Script Approval

    Figure 20 : Completion of the script approval process

  17. Now that the script is approved, you can run the script on designated Windows targets to install the eG VM agent on them. A script can be run on individual devices or a device collection. Either way, to run the script, first select the Assets and Compliance option in the left panel of Figure 7, as soon as you land in the SCCM home page. Figure 21 will then appear.

    Assets and Compliance Tab Page

    Figure 21 : The Assets and Compliance tab page

  18. To run the install script on a collection of devices simultaneously, do the following:

    1. Expand the Overview node in the left panel of Figure 21 and click on Device Collections. The right-panel will then change to display the list of collections that pre-exist (see Figure 22).

      List of Device Collections

      Figure 22 : List of device collections

    2. In the right panel, locate the collection on which you want to install the eG VM agent and right-click on it. From the menu that pops out, pick the Run Script option (see Figure 23).

      Running Script on Device Collection

      Figure 23 : Running a script on a specific device collection

    3. Figure 24 will then appear. The approved scripts will be listed here. Select the eG VM agent install script from this list and click the Next button.

      Selecting VM Agent Install Script for Execution

      Figure 24 : Selecting the VM agent install script for execution on the chosen target

    4. Figure 25 will then appear. Using Figure 25, you can, if required, schedule the script to execute at a specific day and time. After scheduling, click Next to continue.

      Scheduling Script Execution

      Figure 25 : Scheduling script execution

    5. Review the script execution settings in Figure 26 that then appears and click Next to move on.

      Reviewing script execution details

      Figure 26 : Reviewing script execution details

    6. Figure 27 will then appear, where you can monitor the progress of the script execution - i.e., the VM agent installation.

      Status of script execution

      Figure 27 : Monitoring the status of script execution

    7. Once the script successfully executes and the VM agent is installed on the chosen target(s), click the Close button in Figure 27 to exit the wizard.

  19. To run the install script on a particular device, do the following:

    1. Expand the Overview node in the left panel of Figure 21 and click on Devices. The right-panel will then change to display the list of devices (see Figure 28).

      Devices List

      Figure 28 : List of devices that are targets for VM agent installation

    2. In the right panel, locate the device on which you want to install the eG VM agent and right-click on it. From the menu that pops out, pick the Run Script option (see Figure 29).

      Running Script on a Device

      Figure 29 : Running a script on a specific device

    3. Then, proceed as described by steps c-g above for a device collection.