From fd6ca90bb018de2e054b8b2d9a4707ebcbee6d94 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 15 Dec 2022 13:33:26 -0500 Subject: [PATCH] cleanup comments --- Install-EmberkomCloudBackup.ps1 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Install-EmberkomCloudBackup.ps1 b/Install-EmberkomCloudBackup.ps1 index 987ec55..7211038 100644 --- a/Install-EmberkomCloudBackup.ps1 +++ b/Install-EmberkomCloudBackup.ps1 @@ -1,13 +1,13 @@ -## This script requires the $Edition variable is set from the RMM script +# This script requires the $Edition variable is set from the RMM script If (! $Edition ) { $Edition = 'desktop' } -## Specify URL to "Backup for Windows" agent installer +# Specify URL to "Backup for Windows" agent installer $ECB_WIN_URL = 'https://s3.amazonaws.com/cb_setups/MBS/53CFB286-7A97-4FDF-8CFA-475C0DB63A9A/Brands/FB8308E2-448A-4645-A5F6-A3632A7E57F4/EmberkomCloudBackup_v7.8.1.350_ALLEDITIONS_Setup.exe' -## Specify URL to "Backup Virtual Machine Edition" agent installer +# Specify URL to "Backup Virtual Machine Edition" agent installer $ECB_VMM_URL = 'https://s3.amazonaws.com/cb_setups/MBS/53CFB286-7A97-4FDF-8CFA-475C0DB63A9A/Brands/FB8308E2-448A-4645-A5F6-A3632A7E57F4/EmberkomCloudBackup_v7.8.1.350_VMWARE_Setup.exe' -## Set the correct download URL and agent edition +# Set the correct download URL and agent edition switch ( $Edition.ToLower() ) { 'server' { $URL = $ECB_WIN_URL; $AgentEdition = 'baremetal' } 'desktop' { $URL = $ECB_WIN_URL; $AgentEdition = 'desktop' } @@ -15,16 +15,16 @@ switch ( $Edition.ToLower() ) { default { $URL = $ECB_WIN_URL; $AgentEdition = 'desktop' } } -## Install and import additional Powershell module +# Install and import additional Powershell module Install-MSP360Module Import-Module -Name MSP360 -## Install the agent +# Install the agent LogMsg "Installing Emberkom Cloud Backup agent" Try { Install-MBSAgent -URL $URL -Force -Wait } Catch { LogErr $_.Exception.Message } -## Add backup user to installed product +# Add backup user to installed product Try { $MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force LogMsg "Adding backup user account: ${MSP360Username}" @@ -32,12 +32,12 @@ Try { } Catch { LogErr $_.Exception.Message } -## Set the agent edition -## Note: the product edition must be set *after* the user is added +# Set the agent edition +# Note: the product edition must be set *after* the user is added LogMsg "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition""" Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose } Catch { LogErr $_.Exception.Message } -## Delete the desktop icon +# Delete the desktop icon "${Env:PUBLIC}\Desktop\Emberkom Backup.LNK", "${Env:PUBLIC}\Desktop\Emberkom Cloud Backup.LNK" | Remove-File \ No newline at end of file