major update to override Write-Output func
This commit is contained in:
@@ -16,14 +16,14 @@ Import-Module -Name MSP360
|
||||
# Add backup user to installed product
|
||||
#Try {
|
||||
# $MSP360Password = ConvertTo-SecureString -string $MSP360Password -AsPlainText -Force
|
||||
# LogMsg "Adding backup user account: ${MSP360Username}"
|
||||
# Write-Output "Adding backup user account: ${MSP360Username}"
|
||||
# Add-MBSUserAccount -User $MSP360Username -Password $MSP360Password
|
||||
#}
|
||||
#Catch { LogErr $_.Exception.Message }
|
||||
|
||||
# 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"""
|
||||
Write-Output "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition"""
|
||||
Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user