Skip to content

Commit

Permalink
Release v2.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cblandrewa committed Oct 5, 2022
1 parent 3fbb01d commit eb17b90
Show file tree
Hide file tree
Showing 28 changed files with 106 additions and 42 deletions.
Binary file modified docs/api/edit-mbsapiadministrator.md
Binary file not shown.
Binary file modified docs/api/edit-mbsapicompany.md
Binary file not shown.
Binary file modified docs/api/edit-mbsapiuserbackupdestination.md
Binary file not shown.
Binary file modified docs/api/new-mbsapiadministrator.md
Binary file not shown.
Binary file modified docs/api/new-mbsapiadministratorpermission.md
Binary file not shown.
Binary file modified docs/api/new-mbsapicompany.md
Binary file not shown.
Binary file modified docs/api/remove-mbsapicompany.md
Binary file not shown.
Binary file modified docs/backup-agent/new-mbsnbfplanschedule.md
Binary file not shown.
Binary file added docs/tools/restart-mbsagentservice.md
Binary file not shown.
Binary file added docs/tools/start-mbsagentservice.md
Binary file not shown.
Binary file added docs/tools/stop-mbsagentservice.md
Binary file not shown.
27 changes: 10 additions & 17 deletions msp360.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

CompanyName = 'MSP360'

ModuleVersion = '2.24.0'
ModuleVersion = '2.40.0'

# Use the New-Guid command to generate a GUID, and copy/paste into the next line
GUID = '69079da4-a0de-426d-bece-ae139c8b5f1a'
Expand Down Expand Up @@ -48,24 +48,17 @@

# What new features, bug fixes, or deprecated features, are part of this release?
ReleaseNotes = @"
- Critical bugfix:
- Cannot update MSP360 PowerShell Module to version 2.x from older versions (Error: Authenticode issuer ... of the new module 'msp360' with version '2.21.143' ... is not matching with the authenticode issuer ... of the previously-installed module 'msp360' with version '1.x')
- New cmdlets:
- Install-CONAgent (https://mspbackups.com/AP/Help/powershell/cmdlets/connect-agent/install-conagent)
- Get-CONAgent (https://mspbackups.com/AP/Help/powershell/cmdlets/connect-agent/get-conagent)
- Remove-CONAgent (https://mspbackups.com/AP/Help/powershell/cmdlets/connect-agent/remove-conagent)
- Install-RMMAgent (https://mspbackups.com/AP/Help/powershell/cmdlets/rmm-agent/install-rmmagent)
- Get-RMMAgent (https://mspbackups.com/AP/Help/powershell/cmdlets/rmm-agent/get-rmmagent)
- Remove-RMMAgent (https://mspbackups.com/AP/Help/powershell/cmdlets/rmm-agent/remove-rmmagent)
- Start-MBSAgentService (https://mspbackups.com/AP/Help/powershell/cmdlets/tools/start-mbsagentservice)
- Restart-MBSAgentService (https://mspbackups.com/AP/Help/powershell/cmdlets/tools/restart-mbsagentservice)
- Stop-MBSAgentService (https://mspbackups.com/AP/Help/powershell/cmdlets/tools/stop-mbsagentservice)
- Enhancement:
- Install-MSP360Module: -CleanInstall switch to remove all previous versions of the module before install or update to the latest or requested version
- New-MBSBackupPlan, New-MBSNBFIBBBackupPlan: added -KeepBitLocker, -KeepBitLockerEnableForVolume, and -KeepBitLockerDisableForVolume parameters
- Edit-MBSBackupPlan: added -KeepBitLockerEnableForVolume and -KeepBitLockerDisableForVolume parameters
- New-MBSNBFIBBBackupPlan: added 'FixedVolumes' value for -BackupVolumes parameter
- Get-MBSBackupPlan: added output of 'BackupOptions' for volumes in NBF Image-Based backup plans
- New-MBSBackupPlan, New-MBSNBFIBBBackupPlan: added -ExcludeItem parameter for Image-Based backup plans
- New-MBSBackupPlan: added -ExcludeFile and -ExcludeDirectory parameters for File-Level backup plans
- Edit-MBSBackupPlan: added -DisableExcludeFilesFolders switch to remove and disable exclusions for Image-Based backup plans
- New-MBSAPICompany, Get-MBSAPICompany, Edit-MBSAPICompany: added company backup destination ID parameter and output
- New-MBSAPIAdministrator, Get-MBSAPIAdministrator, Edit-MBSAPIAdministrator: added AccountType parameter and output (this value is intended for future RBAC)
- New-MBSAPIAdministratorPermission: added -ManageImmutability parameter
- New-MBSNBFPlanSchedule: removed -Once switch (once frequency not supported in NBF)
- New-MBSNBFPlanSchedule: added -RepeatInterval and -RepeatStartDate parameters (MBS Backup Agent 7.5 release)
- Test-MBSConnection: suppress warning messages if TCP test succeeded, but ICMP ping failed
"@
}
}
Expand Down
14 changes: 14 additions & 0 deletions private/Add-MBSAPIType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ namespace MBS.API
public string Name;
public long StorageLimit;
public string LicenseSettings;
public MBS.API.CompanyDestination[] Destinations;
}
public class CompanyDestination {
public string DestinationId;
}
public class Build {
Expand Down Expand Up @@ -100,6 +105,7 @@ namespace MBS.API
public DateTime DateCreated;
public string[] Companies;
public MBS.API.AccessToCompaniesMode AccessToCompaniesMode;
public MBS.API.AdministratorAccountType AccountType;
}
public class AdministratorPermission {
Expand Down Expand Up @@ -134,6 +140,7 @@ namespace MBS.API
public MBS.API.AdministratorPermissionMode UsersCreateEdit;
public MBS.API.AdministratorPermissionMode UsersDelete;
public MBS.API.AdministratorPermissionMode ManageCompanies;
public MBS.API.AdministratorPermissionMode ManageImmutability;
}
public class Destination1 {
Expand Down Expand Up @@ -406,5 +413,12 @@ namespace MBS.API
SpecifiedCompanies,
AllCompanies
}
public enum AdministratorAccountType
{
Undefined,
InternalAccount,
ExternalAccount
}
}
"@
5 changes: 4 additions & 1 deletion private/Add-MBSCBBType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,17 @@ namespace MBS.Agent.Plan
public TimeSpan OccursFrom;
public TimeSpan OccursTo;
public TimeSpan OccursEvery;
public int RepeatInterval;
public DateTime RepeatStartDate;
}
public class NBFFullSchedule {
public MBS.Agent.Plan.NBFScheduleFrequency Frequency;
public int DayOfMonth;
public System.DayOfWeek[] DayOfWeek;
public Nullable<MBS.Agent.Plan.WeekNumber> WeekNumber;
public int RepeatInterval;
public DateTime RepeatStartDate;
}
public class RestorePlanCommonOption {
Expand Down Expand Up @@ -334,7 +338,6 @@ namespace MBS.Agent.Plan
public enum NBFScheduleFrequency
{
Once,
Daily,
Weekly,
Monthly,
Expand Down
14 changes: 14 additions & 0 deletions private/New-MBSNBFBackupPlan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ function New-MBSNBFBackupPlan {
}
}
}
if ($Schedule.RepeatInterval) {
if ($CBBVersion -ge [version]"7.5.0.80") {
$ScheduleCli += " -repeatEvery$prefix $($Schedule.RepeatInterval)"
} else {
Write-Warning "Backup agent version is $CBBVersion. ""RepeatInterval"" parameter requires version 7.5.0.80 or higher. Ignoring RepeatInterval option"
}
}
if ($Schedule.RepeatStartDate) {
if ($CBBVersion -ge [version]"7.5.0.80") {
$ScheduleCli += " -repeatStartDate$prefix ""$($Schedule.RepeatStartDate.ToString())"""
} else {
Write-Warning "Backup agent version is $CBBVersion. ""RepeatStartDate"" parameter requires version 7.5.0.80 or higher. Ignoring RepeatStartDate option"
}
}

return $Schedulecli

Expand Down
Binary file modified public/api/Edit-MBSAPIAdministrator.ps1
Binary file not shown.
Binary file modified public/api/Edit-MBSAPICompany.ps1
Binary file not shown.
Binary file modified public/api/Edit-MBSAPIUserBackupDestination.ps1
Binary file not shown.
Binary file modified public/api/New-MBSAPIAdministrator.ps1
Binary file not shown.
7 changes: 7 additions & 0 deletions public/api/New-MBSAPIAdministratorPermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ function New-MBSAPIAdministratorPermission {
.PARAMETER ManageCompanies
Allowed to Manage companies
.PARAMETER ManageImmutability
Allowed to Manage immutability
.PARAMETER EnableUndefinedPermissions
If set, all undefined permissions will be enabled (by default, undefined permissions are disabled)
Expand Down Expand Up @@ -226,6 +229,9 @@ function New-MBSAPIAdministratorPermission {
[Parameter(Mandatory=$false, HelpMessage="Allowed to Manage companies")]
[MBS.API.AdministratorPermissionMode]$ManageCompanies,
#
[Parameter(Mandatory=$false, HelpMessage="Allowed to Manage immutability")]
[MBS.API.AdministratorPermissionMode]$ManageImmutability,
#
[Parameter(Mandatory=$false, HelpMessage="If set, all undefined permissions will be enabled (by default, undefined permissions are disabled)")]
[switch]$EnableUndefinedPermissions
)
Expand Down Expand Up @@ -274,6 +280,7 @@ function New-MBSAPIAdministratorPermission {
if($null -ne $UsersCreateEdit) {$AdministratorPermissions.UsersCreateEdit = $UsersCreateEdit}
if($null -ne $UsersDelete) {$AdministratorPermissions.UsersDelete = $UsersDelete}
if($null -ne $ManageCompanies) {$AdministratorPermissions.ManageCompanies = $ManageCompanies}
if($null -ne $ManageImmutability) {$AdministratorPermissions.ManageImmutability = $ManageImmutability}

return $AdministratorPermissions
}
Expand Down
Binary file modified public/api/New-MBSAPICompany.ps1
Binary file not shown.
Binary file modified public/api/Remove-MBSAPICompany.ps1
Binary file not shown.
1 change: 0 additions & 1 deletion public/cbb/New-MBSNBFBackupPlanCommonOption.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ function New-MBSNBFBackupPlanCommonOption {
$BackupPlanOption = New-Object -TypeName MBS.Agent.Plan.NBFBackupPlanCommonOption
$BackupPlanOption.SyncRepositoryBeforeRun = $SyncRepositoryBeforeRun
$BackupPlanOption.UseServerSideEncryption = $UseServerSideEncryption
$BackupPlanOption.UseServerSideEncryption = $UseServerSideEncryption
$BackupPlanOption.EncryptionAlgorithm = $EncryptionAlgorithm
$BackupPlanOption.EncryptionPassword = $EncryptionPassword
$BackupPlanOption.UseCompression = $UseCompression
Expand Down
Loading

0 comments on commit eb17b90

Please sign in to comment.