Downloading and Installing eG VM Agent
To download and install the VM agent on a Cloud PC, administrators should first make sure that the VM agent packages that correspond to the Cloud PCs in the target environment are accessible from the eG manager console. For that, the administrators should do the following:
- Login to the system hosting the eG manager as a user with administrative privileges.
- From a browser, connect to the URL: https://www.eginnovations.com/eval<latest_version_number>/VMAgentPackages
- In this location, you will find a set of zip files. Each zip file is a VM agent package that corresponds to different operating systems on which an eG VM agent can be installed.
-
Download the agent packages / zip files that correspond to the operating system running on the Cloud PC to any folder on the eG manager host. The available VM agent packages are as follows:
-
VmAgent.zip for 32-bit Windows hosts
-
VmAgent_x64.zip for 64-bit Windows hosts
-
VmAgent_Linux.tar for 32-bit Linux hosts
-
VmAgent_Linux_x64.tar for 64-bit Linux hosts
-
-
Copy the downloaded packages to the <EG_INSTALL_DIR>/manager/agents/VM/Latest folder.
If the host to which you have downloaded the package is the target Cloud PC for VM agent installation, then login to that host. On the other hand, if you want to install the VM agent on a host different from the one on which the package has been downloaded, then first copy the agent package to any location on the target desktop. Then, login to that host.
You can now proceed to install the VM agent using the procedure discussed below:
-
Using a browser, connect to the URL of the eG management console and login as a user with administrative privileges.
-
The Components at a Glance page will be displayed upon logging into the eG manager console. Now, click on the Discover/Monitor option in the side navigation menu. This will display the list of categories that can be used to discover/monitor servers/applications using eG Enterprise in the right panel (see Figure 1).
-
In Figure 1, click on the Cloud Desktops tile. This will invoke Figure 2 where the list of cloud desktops that can be discovered by eG will be displayed.
-
In Figure 1, click on the Windows 365 Cloud PCs tile. This will invoke Figure 3 where you should configure the details to monitor a Windows 365 Cloud PCs Group.
-
Specify the nick name for the target Windows 365 Cloud PCs Group in the nick name field and also select the Remote Agent from the drop-down list as shown in Figure 3. Then, click on the Update button to save the configuration. Next, the managed component will be displayed as shown in Figure 4.
Figure 4 : The managed Windows 365 Cloud PCs Group component
-
To download the VM agent, click on the
icon in Figure 4. Figure 5 will then appear.
-
From Figure 5, you can download the VM agent executable which you wish to install on the desktop by clicking on a specific tile. By default, the Manager option is selected from the VM Agent Communication Target list indicating that the VM agent will communicate with the manager to figure out the details of the remote agent to which it should report to. However, choosing the Remote Agent option will ensure that the VM agent directly communicates to the remote agent.
-
Next, select the Installation Method. The VM agent can be installed using any of the following methods:
-
Using ZIP/TAR Package for Agent Installation
-
Using the Command line
Using ZIP/TAR Package for VM Agent Installation
To use this option, follow the steps below:
-
Open the folder to which the zip file has been copied/downloaded, and extract the contents of the file.
-
Next, to install the eG agent on a Windows host silently, open Windows explorer and go to the folder to which the contents of the zip file have been extracted.
-
Right-click on the setup.bat file in that folder, and click the Run as administrator option in the shortcut menu that pops up.
-
This will automatically install the VM agent on the target desktop. This agent will automatically report metrics to the remote agent.
-
You can also execute the setup.bat file from the command prompt. To achieve this, do the following:
-
In the target desktop, run the command prompt as an administrator.
-
Go to the command prompt and navigate to the extracted folder where the setup.bat file is available.
-
Run the following command:
setup.bat
-
The following message will appear on the command prompt window once the VM Agent is successfully installed on the desktop.
Figure 6 : The message stating successful installation of the VM agent
-
Using the Command Line to Install the VM Agent
For this, you need to execute the PowerShell script that eG Enterprise provides, from the Windows PowerShell prompt of the target Cloud PC. The script/command will automatically install and start the VM agent on that Cloud PC. Also, the agent will be automatically configured to report to the remote agent.
To install an eG agent on a Windows 365 Cloud PC using the PowerShell script, do the following:
-
In Figure 5, set Command Line (One-liner) as the Installation Method.
-
Then, pick Windows as the Operating System.
-
Next, pick the Windows version and bit-rate from the Environment drop-down. The PowerShell script that corresponds to your specification will then be displayed, as depicted by Figure 3.
Figure 7 : Installing the VM agent on a Cloud PC by running a PowerShell script on the target Cloud PC
-
Click on the Copy button below the script to copy the script to the clipboard.
-
Next, open the PowerShell prompt on the target Cloud PC, paste the script therein, and run it as an administrator.
-
The script, upon execution, will automatically install, start, and configure the VM agent.
-
Repeat the steps above on each desktop to install the VM agent on it.
Note:
Before attempting to use the Command line (One-liner) option for agent installation on a desktop running on Windows, make sure that PowerShell v5,0 (or above) exists on the target Cloud PC.
-
Installing the eG VM Agent in Bulk using Microsoft Intune
In environments where Windows 365 Cloud PCs are managed through Microsoft Intune, you can install the eG VM agent on all cloud PCs at once using Microsoft Intune instead of manually installing the agent on individual PCs. The following sections explain how to create and deploy a PowerShell installation script using Microsoft Intune for bulk installation of the eG VM Agent on the Windows 365 Cloud PCs.
Create the PowerShell Installation Script
First, you need to create a script file with the Command Line (One-liner) installation command copied from Figure 7. This installation script file will be used by Intune to install the agents on the target Cloud PCs. Follow the steps given below to do this:
-
Open the Windows PowerShell ISE application or any text editor.
-
Paste the copied Command Line (One-liner) installation command generated during the VM Agent download process (Figure 7).
-
Save the file with .ps1 extension (see Figure 8). For example, you can save the file as eGVMagentInstaller.ps1 . Ensure the script contains only the installation command.
Figure 8 : Saving Command Line (One-liner) installation command Script
-
Store the script file in a secured and accessible location on your local system for Intune upload.
Create a Device Group in Microsoft Entra ID
Device groups created in Microsoft Entra ID help you organize the Cloud PCs for deployment. By assigning the installation script to a dedicated device group, you can ensure that the eG VM agents are installed only on the target cloud PCs. This also simplifies device management, phased rollouts, and troubleshooting. To create a device group in Microsoft Entra ID, follow the steps given below:
-
Log in to the Microsoft Entra Admin Center as an administrator.
-
Navigate to the following menu sequence: Groups -> All Groups -> New Group (Figure 9).
-
Now, click on the New group button in Figure 9, set the Group type as Security and create a security group to which you need associate the cloud PCs. Once the group is created, it will be displayed as shown below:
Figure 10 : The new security device group
-
Then, click on the Add members button. This will invoke the Add members window (see Figure 11) using which you can add one or more cloud PCs that you wish to monitor as a group.
-
Finally, click the Select button in Figure 11 the configuration. Once you grouped the cloud PCs, assign the PowerShell Script to the device group using the steps discussed in the following section.
Assigning eG VM Agent to the Device Group
This section explains how to upload the PowerShell script to Intune and assigns it to the target Windows 365 Cloud PC group.
-
Sign in to the Microsoft Intune Admin Center as an administrator.
-
Navigate to the following menu sequence: Home -> Devices -> Scripts and remediations. This will invoke Figure 12.
-
In Figure 12, select the Platform Scripts tab where you need to click the Add option to add the script file. Then, select the Windows 10 and later option from the drop down.
-
Then, select the script file using the Browse button provided against the Script location field (see Figure 13) and add the PowerShell Script file which contains the commands for installing the eG VM agent.
-
Once you have uploaded the script file, you will need to configure the following settings to specify how the script should be executed.
Figure 14 : PowerShell Script Settings
Configure the following in Figure 14:
-
Set the Run this script using logged-on credentials slider to No. This will ensure that the script is executed using the privileged access of the SYSTEM account.
-
Set the Enforce script signature check slider to No,unless you have signed the script and created the required certificate.
-
Set the Run script in 64-bit PowerShell Host to Yes to ensure that the script runs in the 64-bit PowerShell environment on target cloud PCs.
-
-
Then, click the Next button. This will lead you to the Assignments tab.
-
Under the Assignments tab, select the Windows 365 Cloud PC security group created earlier using the Add Group option.
Figure 15 : Assigning the Windows 365 Cloud PCs Group
-
Click the Next button to move on to the Review + add tab (see Figure 16).
Figure 16 : Reviewing the settings
This tab enables you to verify that the target group has been assigned and that it contains the correct number of devices. Finally, click on the Add button to complete the settings.
-
Once you configured and assigned the script file to the target device group, wait for the configured sync interval for the eG VM Agent to be deployed automatically. However, if you want to deploy the agent immediately, perform a manual Sync action as described in the following setion.
Manually initiating Installation Using Intune Sync Action
By default, devices install applications during their scheduled Microsoft Intune sync cycle. To speed up deployment, administrators can manually initiate a Sync device action. The Sync device action forces the selected device to immediately check in with Intune. During the check-in process, the device receives any pending policies, configurations, or application deployments assigned to it. This capability is useful for validating deployments and troubleshooting policies without waiting for the next scheduled sync cycle. The steps for achieving this are explained below:
-
Log in to the Microsoft Intune Admin Center as an administrator.
-
In Intune Admin Center, navigate to the following menu sequence: Devices -> Windows -> Bulk device actions as shown below.
Figure 17 : Selecting Bulk Sync Action
-
Clicking the Bulk device actions option will invoke the Bulk device action window as shown in Figure 18.
Figure 18 : Configuring SYNC action
In Figure 18, configure OS as Windows and Device Type as Cloud PCs. Then, select Sync option from the Device action list.
-
Clicking the Next button will lead you to the Devices tab where you can select the devices of your interest.
-
Now verify whether your have selected the correct devices in the Review + create tab and click the Create button to save the settings for initiating the sync device action manually.
Figure 19 : Reviewing the Cloud PCs settings
Once the sycn device action is configured successfully, the eG VM agent will be automatically installed on the target cloud PCs grouped under the assigned group. To verify whether the eG VM agent is installed successfully, login to the target cloud PC and navigate to the Programs and Features in the Control Panel to confirm that the eG VM Agent appears in the installed applications list.
Once the eG VM agents are installed, the VM agent should begin sending performance metrics to the eG Manager. To verify this communication and view metrics reported by the VM agents, login to the eG manager and navigate to the layer model page of the Windows 365 Cloud PCs component in the Monitor tab.