OPERATING PROCEDURE | WINDOWS / ACTIVE DIRECTORY ENVIRONMENT
1. Purpose #
To guide the automated installation of the Master Remote (masterremote.exe) remote access agent on computers in a corporate network, using Active Directory Group Policy (GPO).
The procedure lets you distribute the installer centrally, with no manual intervention on each workstation.
2. Prerequisites #
Before starting, check:
- A Windows Server with Active Directory and the GPO service available.
- Administrative permission to create and edit GPOs.
- Workstations joined to the domain.
- A network share accessible to the computers that will receive the installation.
- The
masterremote.exeinstaller generated from the company’s Master Remote account. - Read permissions on the installation share for the domain computers.
Important: use an installer recently generated by the company’s Master Control. This way, the agent will already be linked to the organization’s identification and configuration.
3. Preparing the installer #
- Generate or obtain the
masterremote.exefile from the company’s Master Remote account. - On the file server, create a folder to store the installer. Example:
C:\Installers\MasterRemote
- Copy the
masterremote.exefile to this folder. - Share the folder on the network using a UNC path. Example:
\\SERVER\Installers\MasterRemote
5. Configure the share and NTFS permissions so the domain computer accounts have read and execute permission.
We recommend using the Domain Computers group or a specific security group containing the computers that will receive the installation.
4. Creating the GPO #
- On the domain controller, open Group Policy Management (
gpmc.msc). - Find the Organizational Unit (OU) that contains the computers where the agent should be installed.
- Right-click the OU.
- Select Create a GPO in this domain, and Link it here.
- Give the policy a name:
Installation – Master Remote Agent
6. Right-click the GPO you created and select Edit.
5. Configuring the startup script #
Since the file provided is an .exe executable, we recommend using a PowerShell script associated with computer startup (Startup Script).
This approach lets the installation run with system privileges, without depending on the signed-in user.
5.1. Create the PowerShell script #
Create a file named:
Instalar-MasterRemote.ps1
Use the following content:
# Instalação do agente Master Remote via GPO
$Installer = "\\SERVIDOR\Instaladores\MasterRemote\masterremote.exe"
$LocalFolder = "C:\ProgramData\MasterRemote"
$LocalInstaller = "$LocalFolder\masterremote.exe"
$LogFile = "$LocalFolder\Install.log"
# Criar diretório local
if (!(Test-Path $LocalFolder)) {
New-Item -Path $LocalFolder -ItemType Directory -Force | Out-Null
}
# Registrar execução
"[$(Get-Date)] Iniciando instalação Master Remote" |
Out-File $LogFile -Append
try {
# Verificar disponibilidade do instalador
if (!(Test-Path $Installer)) {
throw "Instalador não encontrado no compartilhamento."
}
# Copiar instalador para o computador local
Copy-Item $Installer $LocalInstaller -Force
# Parâmetros silenciosos devem ser confirmados
# com a equipe técnica da Master Remote.
$Arguments = ""
# Executar instalação
$Process = Start-Process `
-FilePath $LocalInstaller `
-ArgumentList $Arguments `
-Wait `
-PassThru
"[$(Get-Date)] Código de saída: $($Process.ExitCode)" |
Out-File $LogFile -Append
if ($Process.ExitCode -ne 0) {
throw "Instalação retornou código diferente de zero."
}
"[$(Get-Date)] Processo de instalação finalizado." |
Out-File $LogFile -Append
}
catch {
"[$(Get-Date)] ERRO: $_" |
Out-File $LogFile -Append
exit 1
}
Do not use the executable in production until you have validated this behavior on a test workstation.
5.2. Store the script #
Save the PowerShell file on a share accessible to the domain computers.
Example:
\\SERVER\Installers\MasterRemote\Instalar-MasterRemote.ps1
Set read permissions for the accounts of the computers that will receive the GPO.
6. Associate the script with the GPO #
In the Group Policy Management Editor, go to:
Computer Configuration → Policies → Windows Settings → Scripts (Startup/Shutdown) → Startup.
Follow these steps:
- Open the Startup option.
- Click Add.
- Enter the program:
powershell.exe - Enter the parameters:
-NoProfile -ExecutionPolicy Bypass -File "\\SERVER\Installers\MasterRemote\Instalar-MasterRemote.ps1" - Confirm the changes.
6.1. Additional recommended settings #
To make sure the network share is available during startup:
- Enable the Always wait for the network at computer startup and logon policy.
- Keep startup scripts running synchronously.
- Check that the antivirus or endpoint protection system is not blocking the installer.
7. Applying and updating the policy #
After completing the setup:
- Open the Command Prompt on a test workstation.
- Run:
gpupdate /force
- Restart the computer so the startup policy runs.
- Wait for startup to finish.
The installation should happen automatically, with no user intervention.
8. Validating the installation #
On the workstation, check:
- That the Master Remote agent was installed correctly.
- That the device appears in the company’s Master Control.
- That the device is identified correctly.
- That the remote connection works.
To check the script execution, see:
C:\ProgramData\MasterRemote\Install.log
You can also check the result of applying the GPO with:
gpresult /r
9. Large-scale distribution #
After validating the installation on a test workstation:
- Link the GPO to the OU that contains the desired computers.
- Expand the distribution gradually.
- Monitor the devices that received the agent.
- Check the log files for any installation failures.
Operational recommendation: implement a control to prevent the installer from running again at every startup. One option is to create a marker file after a successful installation and check for it at the start of the script. Use this marker only after validating the agent’s installation and registration.
10. Important technical considerations #
| Item | Recommendation |
|---|---|
| Installation type | EXE executable |
| Distribution method | GPO – Startup Script |
| Execution context | SYSTEM |
| Network permission | Read for computer accounts |
| Restart | As required by the installer |
| Monitoring | Local log and Master Remote panel |
Important note: installation via GPO should not be confused with simply copying the executable to the workstations. The goal is to actually run the installation process and register the device in the corporate account.
11. Deployment checklist #
- Installer generated in the company account.
- Network share configured.
- Access permissions checked.
- PowerShell script tested.
- GPO created and linked to the correct OU.
- Installation validated on a pilot workstation.
- Device registration confirmed in the Master Remote panel.
- Large-scale distribution authorized.
This information is essential to make sure the GPO installation is truly automated, with no confirmation windows and no unnecessary reinstallations.
Try Master Remote free for 7 days. Professional remote access with 7 integrated tools. Download Master Control →
⚠️ Was this article helpful? – If this article did not answer your question or you found outdated information, contact us through the support channels available in the apps, through our Support Center on WhatsApp or by phone: +55 17 2786-0640, option 4, or through your Customer Area.
⚠️ Images and data in this content are for illustration only. The appearance and information may vary depending on the version used.
Enjoyed the article? Check out what’s new on our WEBSITE, share the article with your friends and follow Master Remote on LinkedIn, YouTube, Instagram and Facebook. Also, explore other articles on the side and stay up to date with the latest news on customer support technology and cybersecurity.
YOU MAY ALSO BE INTERESTED IN: