Disclaimer: The solution provided is offered freely for informational purposes only. While efforts have been made to ensure accuracy, the author takes no responsibility for any damages, losses, or issues resulting from its implementation. Use at your own discretion and ensure proper testing in your environment.
Case Background
In this particular environment, heavy network segregation prevented endpoints from receiving Computer-Based Group Policies (GPOs). As a result:
- The installation of the Atera Agent via GPO failed.
- One of the mandatory requirements was that the installation remain completely silent, ensuring that end users are unaware of the process.
There were several limitations impacting the silent installation:
- The Atera Agent MSI file does not support the /qn operator on domain-bound machines (as per Atera’s design, confirmed by their support team).
- Editing the MSI file to include required fields was not possible.
- The Atera license used did not include access to the Private Repository, which allows over-the-internet installation of custom files.
After various attempts to force the GPO on the endpoints failed, a solution was devised.
The Solution
To overcome these challenges, the following steps were implemented:
- Command Line Installation Script:
- The installation script was retrieved from the Atera Portal under the "Install via Command Line" option.
- It was placed in the domain controller’s SYSVOL folder as a .bat file. This ensures accessibility for all domain-bound machines.
- Task Scheduling via User-Level GPO:
- A User-Level Group Policy Object (GPO) was created to execute the installation script silently. The GPO settings were as follows:
- General Tab:
- Run the task as SYSTEM user.
- Enable Run with Highest Privileges.
- Actions Tab:
- Add a Start a Program action.
- Specify the program path as:
C:\Windows\System32\cmd.exe
- Add the arguments as:
/c "<path to SYSVOL>"
These configurations ensured that the Atera installation script runs as the SYSTEM user, achieving complete silence during execution.
Deployment and Cleanup:
- The GPO was attached to the Users OU.
- When a user logged in for the first time, the script attempted to run.
- After the mass deployment was completed, the GPO was disabled.