Related Articles

Deploy Agent with OS Image

OS deployment is the first stage in preparing a computer for business. You can choose to image the agent and deploy the imaged OS to computers, so that agent installation is bundled with the OS deployment. This document will guide you to image a computer with Patch Manager Plus image on it. There are four stages, which are described below:

  1. Prepare a computer with agent to be imaged
  2. Disable the communication between the computer and the server
  3. Image the comptuer
  4. Run a script to rename and re-establish agent - server communication

Every agent has an unique id which represents the machine with its name and system details. When an agent communicates the server, the specific machine details are updated on the server. When you choose to image an agent and deploy the image, all the deployed images, will have the same details, instead of unique IDs. So in order to aviod this issue, follow the steps mentioned below to image a computer with Patch Manager Plus Agent on it.


  1. Install Patch Manager Plus Agent in the computer which is to be used for imaging.
  2. Download this script and store it in the system that is supposed to be imaged.
    (running this script will block the Patch Manager Plus Agent communicating the Patch Manager Plus Server)
  3. Remane the .txt file as .vbs file
  4. Open the command prompt as administrator and navigate to the folder where the above script is stored.
  5. Execute the script as:cscript.exe dcagentPreImage.vbs
    (example : E:\Downloads>cscript.exe dcagentPreImage.vbs)
  6. Now your computer is ready to be imaged with Patch Manager Plus Agent, for deployment.
    Patch Manager Plus Agent in the newly imaged computers will contact the Patch Manager Plus Server only if they are renamed.
  7. If you want to manage the imaged computer, download this script and run the same as administrator on the imaged computer after being used for deployment(remane the .txt file as .vbs file).
  8. This would restore the Patch Manager Plus Agent communication with the Patch Manager Plus Server.