Be sure to "Like" My (and a few others) Cool Solutions below!
This Cool Solution helps you to automate the deployment of ZENworks 10 Configuration Management Adaptive Agent to devices in an Active Directory domain using Group Policy Objects.
The information in this article is organized as follows:
Section III provides a sample MSI installer created by following steps in Section II
If you are managing devices in an Active Directory domain, you can use the Software Installation feature of Group Policy to deploy ZENworks Adaptive Agent. This article requires the Group Policy Management Console (GPMC). To download GPMC, see Group Policy Management Console with Service Pack 1.
Active Directory Group Policy Objects can be used to deliver applications to computers or users. The application is installed when the computer starts and is available to all users who log in to the computer.
Group Policy provides support to deploy Windows Installer packages (.MSI files), Transform Files (.MST files), and patch files (.MSP files). The ZENworks Adaptive Agent deployment packages are available as an executable application ( PreAgentPkg_Agent.exe for network install and PreAgentPkg_AgentComplete.exe for standalone install) as it contains multiple MSI files. Since Active Directory does not provide means to deploy .exe files, you should create an MSI installer for the existing agent deployment packages.
You can either create an MSI packaged with PreAgentPkg_Agent.exe or create an MSI that executes the PreAgentPkg_Agent.exe located in a shared folder if you do not want to recreate the MSI when the deployment packages get updated.
You can download the agent packages from the page https://<ZENworks Primary Server IP>/zenworks-setup. Or you can obtain the packages from %ZENWORKS_HOME%\install\downloads\setup\_all folder in a Windows Primary Server and /opt/novell/zenworks/install/downloads/setup/_all folder in a Linux Primary Server. The packages under _all folder can be deployed to both 32 bit and 64 bit platforms. It would be safer to use these packages for deployment if you are not sure of the architecture of the target device.
The below steps assume you have downloaded the package PreAgentPkg_Agent.exe or PreAgentPkg_AgentComplete.exe and placed it in C:\packages folder.
The ZENAgentInstall_embedded.wxs file creates an installer embedding the agent package inside it.
The ZENAgentInstall_external.wxs file creates an installer that installs the agent package placed in a shared folder location. If you choose to use ZENAgentInstall_embedded.wxs, then continue with Step 3.
If you choose to use ZENAgentInstall_external.wxs, then skip to Step 4.
<File Id="zenpreagent" LongName="preagent.exe" Name="PREAGENT.EXE" src="C:\packages\PreAgentPkg_Agent.exe" DiskId="1"/>
<File Id="zenpreagent" LongName="preagent.exe" Name="PREAGENT.EXE" src="\\packages.novell.com\packages\PreAgentPkg_Agent.exe" DiskId="1"/>
The attached ZENAgentInstall.msi (Attached in ZENWorksAgentInstall.zip) is an installer which installs the file preagent.exe located in the same folder as itself. Copy the ZENAgentInstall.msi and PreAgentPkg_AgentComplete.exe to the shared folder created using steps in Section II. Rename the PreAgentPkg_AgentComplete.exe package as preagent.exe. Follow the steps in Section IV to deploy the MSI file through GPO.
The created Windows Installer packages - ZENAgentInstall_external.msi or ZENAgentInstall_embedded.msi, have to be placed in a shared folder location for the computers to access it.
To create a shared folder:
You can also place the agent packages in this location, if you have used ZENAgentInstall_external.wxs and have to refer to the agent package from a shared location. Ensure that the src attribute in ZENAgentInstall_external.wxs refers to this location.
Type a descriptive name for the new GPO and press ENTER.
In Computer Configuration, expand Software Settings.
In the Open dialog box, type the full Universal Naming Convention (UNC) path of the shared installer package to be installed. For example, \\server name \share\file name.msi.
Click Assigned, and then click OK.
The package is listed in the right pane of the Group Policy Object Editor window.
When the client computer starts, the managed software package is automatically installed.
To uninstall the ZENAgentInstall.msi, run msiexec /x <ProductCode> at the command prompt, where <ProductCode> is the product code of the ZENAgentInstall.msi. This does not uninstall the ZENWorks Adaptive Agent from the device.
To uninstall the Adaptive Agent, remove it from the Control Panel.