{"id":48279,"date":"2018-09-11T15:11:13","date_gmt":"2018-09-11T11:11:13","guid":{"rendered":"https:\/\/www.msp360.com\/resources\/?p=48279"},"modified":"2024-01-05T13:35:25","modified_gmt":"2024-01-05T09:35:25","slug":"remote-deploy-use-cases","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/remote-deploy-use-cases\/","title":{"rendered":"Remote Deploy: Use Cases"},"content":{"rendered":"<p>Although an MSP\u2019s job is challenging overall, many tasks are routine. And changing <a href=\"https:\/\/www.msp360.com\/resources\/blog\/data-backup-plan\/\">backup plans<\/a> is a part of this routine. Doing this on a single computer is easy but, when you have a customer with 100+ PCs, changing all the plans might take way too long. However, you can significantly reduce the number of working hours you\u2019re going to spend on it. Try our PowerShell module!<\/p>\n<p><!--more--><\/p>\n<p>Below, you will see how to make changes to a plan with this module. This guide overviews several most common use cases: adding compression or encryption to a plan and changing the storage destination. To make these modifications in MSP360 Managed Backup Service, you'll need to create a new backup plan for a single file and apply a bulk modification script through this plan. The script will apply changes to your plans and delete the plan that contains this script.<\/p>\n<blockquote><p>Note, this guide applies to file-level backup plans only.<\/p><\/blockquote>\n<p>Let's start.<\/p>\n<p>Create a new plan, backing up any file. Give it a name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51135 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_46.jpg\" alt=\"Naming a Plan in Managed Backup Service\" width=\"884\" height=\"346\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_46.jpg 884w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_46-300x117.jpg 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_46-768x301.jpg 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_46-624x244.jpg 624w\" sizes=\"auto, (max-width: 884px) 100vw, 884px\" \/><\/p>\n<blockquote><p>Please note: remember this name, as you will need it later in your scripts.<\/p><\/blockquote>\n<p>Schedule it to start every 15 minutes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51136 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_47.jpg\" alt=\"Adding a Schedule to a Plan in Managed Backup Service\" width=\"844\" height=\"465\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_47.jpg 844w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_47-300x165.jpg 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_47-768x423.jpg 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_47-624x344.jpg 624w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/p>\n<p id=\"last\">In the <b>Pre\/Post Actions<\/b>, paste the script as a single line.<\/p>\n<div id=\"slidebox\"><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa\" data-portal=\"5442029\" data-id=\"3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa\"><span class=\"hs-cta-node hs-cta-3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa\" id=\"hs-cta-3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/3fa560b5-1fa5-4465-b1b9-1bd53e21d2aa.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code --><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-51137 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_48.jpg\" alt=\"Adding a Script to a Plan in Managed Backup Service\" width=\"862\" height=\"187\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_48.jpg 862w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_48-300x65.jpg 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_48-768x167.jpg 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Screenshot_48-624x135.jpg 624w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/p>\n<h2>How the Scripts Work<\/h2>\n<p>Here, we\u2019ll parse one of the scripts, described below command by command.<\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp;{<\/pre>\n<p>Starts PowerShell as a separate process with Execution Policy in the Bypass mode.<\/p>\n<pre>$PreActionPlanName = 'ChangeStorage';<\/pre>\n<p>Stores your plan name in a variable that will be used later. Be careful; the plan name must match the one you\u2019ve set before.<\/p>\n<pre>$MasterPassword = ConvertTo-SecureString -string 'Master_Password' -AsPlainText -Force;<\/pre>\n<p>Enters our master password (please type it in place of Master_Password).<\/p>\n<pre>iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module;<\/pre>\n<p>Downloads and installs our PowerShell module.<\/p>\n<pre>Get-MBSBackupPlan -PlanType 'File-Level' |<\/pre>\n<p>Applies upcoming changes for all the file-level plans.<\/p>\n<pre>Edit-MBSBackupPlan -CommonParameterSet -StorageAccountID (Get-MBSStorageAccount -Name \"New storage name\").ID -MasterPassword $MasterPassword;<\/pre>\n<p>Modifies all the plans (=file-level ones) you retrieved in the previous step, setting new storage with the name \u201cNew Storage Name\u201d (replace with yours).<\/p>\n<pre>Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} |<\/pre>\n<p>Selects your current plan.<\/p>\n<pre>Remove-MBSPlan -MasterPassword $MasterPassword}\"<\/pre>\n<p>Deletes the current plan using the master password.<\/p>\n<p>The scripts described contain all the commands needed, including the script to install the PowerShell module. For each configuration, there are versions without the Master Password and with it.<\/p>\n<h2>Enabling Compression<\/h2>\n<h3>Case<\/h3>\n<p>You want to save some storage space but forgot to enable the compression option while creating plans.<\/p>\n<h3>Solution<\/h3>\n<p><b>Without Master Password:<\/b><\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp; {$PreActionPlanName = 'ChangeCompression'; iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module; Get-MBSBackupPlan -PlanType 'File-Level' | Edit-MBSBackupPlan -CommonParameterSet -Compression $true; Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} | Remove-MBSPlan}\"<\/pre>\n<p><b>With Master Password:<\/b><\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp; {$PreActionPlanName = 'ChangeCompression'; $MasterPassword = ConvertTo-SecureString -string 'Master_Password' -AsPlainText -Force; iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module; Get-MBSBackupPlan -PlanType 'File-Level' | Edit-MBSBackupPlan -CommonParameterSet -Compression $true -MasterPassword $MasterPassword; Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} | Remove-MBSPlan -MasterPassword $MasterPassword}\"<\/pre>\n<h2>Enabling Encryption<\/h2>\n<h3>Case<\/h3>\n<p>You want to add an additional level of protection to your plans.<\/p>\n<h3>Solution<\/h3>\n<p><b>Without Master Password:<\/b><\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp; {$PreActionPlanName = 'ChangeEncryption'; iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module; Get-MBSBackupPlan -PlanType 'File-Level' | Edit-MBSBackupPlan -CommonParameterSet -EncryptionAlgorithm \"AES265\" -EncryptionPassword (ConvertTo-SecureString -string 'Your_Password' -AsPlainText -Force); Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} | Remove-MBSPlan}\"<\/pre>\n<p><b>With Master Password:<\/b><\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp; {$PreActionPlanName = 'ChangeEncryption'; $MasterPassword = ConvertTo-SecureString -string 'Master_Password' -AsPlainText -Force; iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module; Get-MBSBackupPlan -PlanType 'File-Level' | Edit-MBSBackupPlan -CommonParameterSet -EncryptionAlgorithm \"AES265\" -EncryptionPassword (ConvertTo-SecureString -string 'Your_Password' -AsPlainText -Force) -MasterPassword $MasterPassword; Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} | Remove-MBSPlan -MasterPassword $MasterPassword}\"<\/pre>\n<h2>Changing Backup Destination<\/h2>\n<h3>Case<\/h3>\n<p>You want to change the backup destination for your plans.<\/p>\n<h3>Solution<\/h3>\n<p><b>Without Master Password:<\/b><\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp; {$PreActionPlanName = 'ChangeStorage'; iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module; Get-MBSBackupPlan -PlanType 'File-Level' | Edit-MBSBackupPlan -CommonParameterSet -StorageAccountID (Get-MBSStorageAccount -Name \"New storage name\").ID; Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} | Remove-MBSPlan}\"<\/pre>\n<p><b>With Master Password:<\/b><\/p>\n<pre>cmd \/c start powershell -ExecutionPolicy Bypass -command \"&amp; {$PreActionPlanName = 'ChangeStorage'; $MasterPassword = ConvertTo-SecureString -string 'Master_Password' -AsPlainText -Force; iex (New-Object System.Net.WebClient).DownloadString('https:\/\/git.io\/JUSAA'); Install-MSP360Module; Get-MBSBackupPlan -PlanType 'File-Level' | Edit-MBSBackupPlan -CommonParameterSet -StorageAccountID (Get-MBSStorageAccount -Name \"New storage name\").ID -MasterPassword $MasterPassword; Get-MBSBackupPlan | Where {$_.Name -eq $PreActionPlanName} | Remove-MBSPlan -MasterPassword $MasterPassword}\"<\/pre>\n<p>As you can see, there is nothing special about utilizing our PowerShell module; it is a simple yet useful tool for bulk plan modifications. Please, refer to this page <a href=\"https:\/\/kb.msp360.com\/managed-backup-service\/powershell-module\/cmdlets\">to get more information about the module<\/a>, or contact our pre-sales team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although an MSP\u2019s job is challenging overall, many tasks are routine. And changing backup plans is a part of this routine. Doing this on a single computer is easy but, when you have a customer with 100+ PCs, changing all the plans might take way too long. However, you can significantly reduce the number of [&hellip;]<\/p>\n","protected":false},"author":89,"featured_media":48120,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[878,931],"tags":[957],"class_list":["post-48279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-msp-university","category-msp360-product-guides","tag-remote-deploy-feature-in-managed-backup-service-overview"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/48279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=48279"}],"version-history":[{"count":8,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/48279\/revisions"}],"predecessor-version":[{"id":57217,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/48279\/revisions\/57217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media\/48120"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=48279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=48279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=48279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}