Change Backup Agent Edition

Using our MSP360 PowerShell Module, you can change the backup agent edition on a single machine or in bulk if you have a way to send a script to all machines at once. In case you are using our RMM Agent, check the Remote PowerShell / Bash Script Execution article.

To perform backup agent edition change, you need to install the MSP360 PowerShell Module and use the Set-MBSAgentSetting cmdlet.

Example 1: Change the backup agent edition to Desktop

Full script:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')+'Install-MSP360Module')
Set-MBSAgentSetting -Edition desktop

In one line:

powershell -ExecutionPolicy Bypass -command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex (New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA'); Install-MSP360Module; Set-MBSAgentSetting -Edition desktop}"

Example 2: Change the edition to Server

Full script:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')+'Install-MSP360Module')
Set-MBSAgentSetting -Edition Server

In one line:

powershell -ExecutionPolicy Bypass -command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex (New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA'); Install-MSP360Module; Set-MBSAgentSetting -Edition Server}"

Example 3: Change the backup agent edition depending on the type of OS

This script will detect the type of Windows OS (Workstation or Server) and set the backup agent edition to Desktop or Server, respectively.

Full script:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA')+'Install-MSP360Module')
if ((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType -eq 1) {
    Set-MBSAgentSetting -Edition Desktop
} else {
    Set-MBSAgentSetting -Edition Server
}

In one line:

powershell -ExecutionPolicy Bypass -command "& {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex (New-Object System.Net.WebClient).DownloadString('https://git.io/JUSAA'); Install-MSP360Module; if ((Get-CimInstance -ClassName Win32_OperatingSystem).ProductType -eq 1) {Set-MBSAgentSetting -Edition Desktop} else {Set-MBSAgentSetting -Edition Server}}"

Contact Us ​

Tech questions: support@msp360.com
Sales questions: sales@msp360.com  

https://git.cloudberrylab.com/egor.m/doc-help-mbs.git