Defender – Script to Add the Remote to the Exclusions

Updated on November 27, 2026

Windows Defender is an essential tool for protecting the system against digital threats, but in some cases it may block legitimate programs that need unrestricted access to work properly, such as Master Remote. To avoid this problem, you can create exclusions in Windows Defender, allowing certain applications to run without restrictions.

In this article, we present an automated script that makes this process easier, so you can add exclusions efficiently without manually navigating the settings. With this method, setup is fast, accurate and adaptable to your needs.

This snippet must be saved in a text file with the .PS1 extension and run via CMD with administrator rights

For the Master Remote Agent, depending on the version used, you may find two folder paths, as described below:

  • C:\Program Files (x86)\MasterRemote\
  • C:\Program Files (x86)\Master Remote Sistemas LTDA\Master Remote\

For the examples, we will use only the shorter path, for illustration purposes.


if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] “Administrator”)) { Start-Process powershell.exe “-NoProfile -ExecutionPolicy Bypass -File "$PSCommandPath“” -Verb RunAs; exit }

Write-Output “Allowing MasterRemote”

Set-MpPreference -ExclusionPath ‘C:\Program Files (x86)\MasterRemote\MasterBackup.exe’, ‘C:\Program Files (x86)\MasterRemote\MasterDesktop.exe’,’C:\Program Files (x86)\MasterRemote\MasterMonitor.exe’,’C:\Program Files (x86)\MasterRemote\MasterRemote.exe’,’C:\Program Files (x86)\MasterRemote\MasterService.exe’,’C:\Program Files (x86)\MasterRemote\MasterUpdate.exe’,’C:\Program Files (x86)\MasterRemote\AtualizacaoR.Atu’

Write-Output “Done!”
Read-Host “Press any key to exit”


See HERE how to configure it manually through the Windows interface if you are not comfortable with CMD commands.

Contributed by: ABBAS Automação

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.