Deploying Master Remote via GPO

Updated on November 27, 2026

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.exe installer 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 #

  1. Generate or obtain the masterremote.exe file from the company’s Master Remote account.
  2. On the file server, create a folder to store the installer. Example:

C:\Installers\MasterRemote

  1. Copy the masterremote.exe file to this folder.
  2. 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 #

  1. On the domain controller, open Group Policy Management (gpmc.msc).
  2. Find the Organizational Unit (OU) that contains the computers where the agent should be installed.
  3. Right-click the OU.
  4. Select Create a GPO in this domain, and Link it here.
  5. 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:

  1. Open the Startup option.
  2. Click Add.
  3. Enter the program:powershell.exe
  4. Enter the parameters:-NoProfile -ExecutionPolicy Bypass -File "\\SERVER\Installers\MasterRemote\Instalar-MasterRemote.ps1"
  5. 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:

  1. Open the Command Prompt on a test workstation.
  2. Run:
gpupdate /force
  1. Restart the computer so the startup policy runs.
  2. 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:

  1. Link the GPO to the OU that contains the desired computers.
  2. Expand the distribution gradually.
  3. Monitor the devices that received the agent.
  4. 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 #

ItemRecommendation
Installation typeEXE executable
Distribution methodGPO – Startup Script
Execution contextSYSTEM
Network permissionRead for computer accounts
RestartAs required by the installer
MonitoringLocal 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:


Precisa resolver isso no computador de um cliente?

Com o Master Remote você acessa o PC ou o celular remotamente e resolve o problema sem sair da sua mesa.

Need to fix this on a customer’s computer?

With Master Remote you access the PC or phone remotely and solve the problem without leaving your desk.

Este artigo ajudou?

Ainda precisa de ajuda?

O suporte atende pelo WhatsApp e pelo telefone (17) 2786-0640, opção 4. Para aprender no seu ritmo, veja os vídeos da Central de Treinamento.

Still need help?

Our support team is available on WhatsApp and by phone at +55 17 2786-0640, option 4. To learn at your own pace, watch the Training Center videos.