Professional Documents
Culture Documents
AGENT INSTALL GPO START-UP Powershell
AGENT INSTALL GPO START-UP Powershell
2. Download psinstallagent.ps1
https://downloads.zohocorp.com/dnd/Endpoint_Central/iFcx5XASUDlQef0/
psinstallagent.ps1
and place it in a folder.
5. Once the new GPO is created, you can see it in the GPMC in the left navigation
pane, under Group Policy Objects.
6. Create a start-up task to execute the deployment and installation of the Windows
Agent
● Open the Group Policy Management Editor by right-clicking on the new
GPO you created, and selecting Edit.
● Expand Computer Configuration --> Policies --> Windows Settings -->
scripts(Startup/Shutdown)
● Right click Startup and click Properties and switch to PowerShell Scripts.
AGENT INSTALL GPO START-UP SCRIPT
UEMSAgent.msi
UEMSAgent.mst
● Paste the Below files which are available only after the DC build 100653
DMRootCA.crt
● Below file wont be available when 3rd party certificate uploaded in server
and wont be available for cloud edition. Can leave this file for migration
DMRootCA-Server.crt
● Below file is available only after the DC build 10.1.2127 and available for
cloud edition
DCAgentServerInfo.json
● Now copy the network Path, we need it in the later steps. Copy the location
(\\Domain name\SysVol\Domain name\Policies\{ID}\Machine\Scripts\
Startup)
AGENT INSTALL GPO START-UP SCRIPT
● Browse and navigate to the location, copy the full path (\\Domain name\
SysVol\Domain name\Policies\{ID}\Machine\Scripts\Startup) of
PSInstallAgent.ps1script. Then specify the path (copied location) and the
script as mentioned below:
AGENT INSTALL GPO START-UP SCRIPT
EXAMPLE:
Script Name:
\\domain.com\SysVol\domain.com\Policies\{id}\Machine\Scripts\Startup\
psinstallagent.ps1
Script Parameters:
UEMSAgent.msi UEMSAgent.mst
UEMSAgent.msi UEMSAgent.mst
11. The script will be executed when the client computers reboot
Note:
● Please test it few test machines before mass deployment.
● Execute the below command on the client machine with admin privileges to
trigger the GPO task and reboot the machine to take effect.