4 years ago

3 years ago

Bluetrait MSP

1307

Agent Uninstall or New Agent Registration

Windows

If you wish to remove the Windows agent from the computer (including its agent registration within Bluetrait) then please follow these steps.

  1. Uninstall "Bluetrait Agent" from add/remove programs on the local computer
  2. Delete the "C:\Program Files (x86)\Bluetrait Agent" folder or "C:\Program Files\Bluetrait Agent" on 32bit versions of Windows
  3. Delete the agent from Bluetrait

This will remove all previously downloaded scripts/files etc and also remove the configuration file. The configuration file is what determines the agent checks-in against in Bluetrait.

Otherwise if you wish to simply create a new registration in Bluetrait.

  1. Delete the "C:\Program Files (x86)\Bluetrait Agent\config.json" file.
  2. Restart the "BluetraitAgent" service from the services page in Windows.

Bulk Deploy Windows

If you don't have a way to run scripts on existing machines easily the best option for bulk installing the agent on Windows machines is to use the Microsoft PsExec tool. You can download it here.

You will need a common admin username and password on all machines.

psexec @computers.txt /accepteula -u "domain\username" -p "password" -d -s cmd /c "msiexec.exe /I "\\uncpath\Setup\BluetraitInstaller.msi" /quiet /norestart" 

This will read the computer name or IP address from computers.txt and then connect to them with user/pass. You will need Bluetrait MSI on a open network drive.

Linux

To uninstall the linux agent.

systemctl stop btagent
systemctl disable btagent
rm /sys/fs/cgroup/systemd/system.slice/btagent.service
rm /etc/systemd/system/btagent.service
rm /etc/systemd/system/multi-user.target.wants/btagent.service
rm -rf /opt/msp-agent/
systemctl daemon-reload
systemctl reset-failed

MacOS

To uninstall the MacOS agent version 1.5 please follow these steps.

  1. Open terminal
  2. Run: sudo launchctl unload "/Library/LaunchDaemons/net.dalegroup.bluetraitagent.plist"
  3. Run: sudo rm /Library/LaunchDaemons/net.dalegroup.bluetraitagent.plist
  4. Run: rm -rf /opt/msp-agent/

To deploy the mac agent remotely you can run (requires swift tools installed for 10.14.3 or lower):

  1. curl -o MacAgentInstaller.pkg 'https://example.buetrait.com/simple/msp_download_agent?os=mac&access_key=xxxx'
  2. installer -pkg MacAgentInstaller.pkg -target /