You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example 2: Note: If the administrator initially has access to all companies and you want to assign specific companies to him, parameter '-AccessToCompaniesMode SpecifiedCompanies' is needed to be explicitly specified.
PS C:\> Get-MBSAPIAdministrator -ProfileName ao -AdminID 0b7e0a79-78e9-493e-af72-764f21960b05 | Edit-MBSAPIAdministrator -AccessToCompaniesMode SpecifiedCompanies -Companies 'DemoCompany','NewCompany' -ProfileName ao
Parameters
-AdminID
ID of the admin that you are editing. Use Get-MBSAPIAdministrator to determine
Type
String
Required:
true
Position:
1
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-FirstName
First Name
Type
String
Required:
false
Position:
2
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-LastName
Last name
Type
String
Required:
false
Position:
3
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-Companies
List of companies the admin should have access to
Type
String[]
Required:
false
Position:
4
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-Enabled
Whether the admin is to be enabled.
Type
Boolean
Required:
false
Position:
5
Default value:
True
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-Password
The administrator's password.
Type
SecureString
Required:
false
Position:
6
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-ProfileName
Profile name used with MSP360 PowerShell for MBS API (set via Set-MBSApiCredential)
If set to 'Internal' then access to an employee inside company is provided. If set to 'External' then access to any third party, such as a customer, is provided. This field can be empty for backward compatibility.
Type
AdministratorAccountType
Required:
false
Position:
10
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Company Id. Use Get-MBSAPICompany to list companies ID.
Type
String
Required:
false
Position:
1
Default value:
Accept pipeline input:
true (ByValue, ByPropertyName)
Accept wildcard characters:
false
-Name
Company name
Type
String
Required:
false
Position:
2
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-StorageLimit
Company backup limit. A negative value indicates the resource is unconstrained by a quota.
Type
String
Required:
false
Position:
3
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-LicenseSettings
Company license settings: 0 - Custom (Users have custom license settings) 1 - Global Pool(Users activate paid licenses from the global pool automatically) 2 - Company Pool(Users can activate only limited number of paid licenses from the company pool)
Type
String
Required:
false
Position:
4
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-DestinationID
Backup storage destination ID. Multiple IDs can be specified.
Type
String[]
Required:
false
Position:
5
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-ProfileName
Profile name used with MSP360 PowerShell for MBS API (set via Set-MBSApiCredential)
Type
String
Required:
false
Position:
5
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
Type
String
Required:
false
Position:
6
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
ID of the user whose backup destination will be edited. Use Get-MBSAPIUser to determine.
Type
String
Required:
true
Position:
1
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-AccountID
The ID of the storage account that is to be edited. Use Get-MBSAPIUserBackupDestination or Get-MBSAPIStorageAccount to determine.
Type
String
Required:
true
Position:
2
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-ID
ID of the destination to be edited. Use Get-MBSAPIStorageAccountDestinationGet-MBSAPIUserBackupDestination to determine.
Type
String
Required:
true
Position:
3
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-Destination
Name of the destination
Type
String
Required:
true
Position:
4
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-PackageID
ID of the storage limit (package) that is to be applied.
Type
String
Required:
true
Position:
5
Default value:
Accept pipeline input:
true (ByPropertyName)
Accept wildcard characters:
false
-ProfileName
Profile name used with MSP360 PowerShell for MBS API (set via Set-MBSApiCredential)
Type
String
Required:
false
Position:
6
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
If set to 'Internal' then access to an employee inside company is provided. If set to 'External' then access to any third party, such as a customer, is provided. This field can be empty for backward compatibility.
Type
AdministratorAccountType
Required:
false
Position:
11
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Example 2: Create object with administrator permissions that enables all permissions except managing administrators and all actions related to licenses.
If set, all undefined permissions will be enabled (by default, undefined permissions are disabled)
Type
SwitchParameter
Required:
false
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Example 2: Create company named ComputerCompany with 1 Tb storage limit, Custom licensing pool and backup destinations that have display names containing "AWS" and "Local"
Company backup limit. A negative value indicates the resource is unconstrained by a quota.
Type
String
Required:
false
Position:
2
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-LicenseSettings
Company license settings: 0 - Custom (Users have custom license settings) 1 - Global Pool(Users activate paid licenses from the global pool automatically) 2 - Company Pool(Users can activate only limited number of paid licenses from the company pool)
Type
String
Required:
false
Position:
3
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-DestinationID
Backup storage destination ID. Multiple IDs can be specified.
Type
String[]
Required:
false
Position:
4
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-ProfileName
Profile name used with MSP360 PowerShell for MBS API (set via Set-MBSApiCredential)
Type
String
Required:
false
Position:
4
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
Type
String
Required:
false
Position:
5
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Example 2: Are you sure you want to perform this action?
Performing the operation "Remove-MBSAPICompany" on target "Removing company with ID: ce786a8f-46a7-4442-b4ab-f2e2f1d9858a" [Y] Yes [N] No (default is "N"):y Company ce786a8f-46a7-4442-b4ab-f2e2f1d9858a successfully deleted
Remove company with confirmation prompt.
Example 2: Remove company with confirmation prompt.
Profile name used with MSP360 PowerShell for MBS API (set via Set-MBSApiCredential)
Type
String
Required:
false
Position:
2
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-WhatIf
Type
SwitchParameter
Required:
false
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-Confirm
Type
SwitchParameter
Required:
false
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
[Parameter(Mandatory=$true, HelpMessage="Use to configure incremental backup schedule", ParameterSetName='Once')]
Type
SwitchParameter
Required:
true
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
-Full
Type
SwitchParameter
Required:
true
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
-Once
Run once
Type
SwitchParameter
Required:
false
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
-Daily
Run either daily at specific time or daily from/till specific time every specific min/hour
Type
SwitchParameter
Required:
false
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
-Weekly
Run weekly at specific time or weekly from/till specific time every specific min/hour
Type
SwitchParameter
Required:
false
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
-Monthly
Run monthly at specific time or monthly from/till specific time every specific min/hour
Type
SwitchParameter
Required:
false
Position:
named
Default value:
False
Accept pipeline input:
false
Accept wildcard characters:
false
-At
Specify either datetime or time of schedule
Type
DateTime
Required:
true
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-DayOfMonth
Specify day for 'dayofmonth' schedule (1..31)
Type
Int32
Required:
true
Position:
named
Default value:
0
Accept pipeline input:
false
Accept wildcard characters:
false
-DayOfWeek
Specify day(s) of week for weekly schedule or day of week for monthly schedule. Possible values: First, Second, Third, Fourth, Penultimate, Last
Type
DayOfWeek[]
Required:
true
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-WeekNumber
Specify number of week. Possible values: First, Second, Third, Fourth, Penultimate, Last
Type
WeekNumber
Required:
true
Position:
named
Accepted values:
First, Second, Third, Fourth, Penultimate, Last
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-OccursFrom
Specify daily recurring from value
Type
TimeSpan
Required:
true
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-OccursTo
Specify daily recurring till value
Type
TimeSpan
Required:
true
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-OccursEvery
Specify recurring period value. Possible values: 1-59 min, or 1-180 hour
Type
TimeSpan
Required:
true
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
Type
TimeSpan
Required:
true
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
-RepeatInterval
Specify repeat period value (days). Possible values: 1..31
Type
Int32
Required:
false
Position:
named
Default value:
0
Accept pipeline input:
false
Accept wildcard characters:
false
-RepeatStartDate
Specify start date of repetitions
Type
DateTime
Required:
false
Position:
named
Default value:
Accept pipeline input:
false
Accept wildcard characters:
false
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Restart Online Backup Service and Online Backup Remote Management Service regardless of their actual names, which can be different because of branding settings.
Examples
Example 1: Restarts the MBS Agent backup and remote management services.
PS C:\> Restart-MBSAgentService
Parameters
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Start Online Backup Service and Online Backup Remote Management Service regardless of their actual names, which can be different because of branding settings.
Examples
Example 1: Starts the MBS Agent backup and remote management services.
PS C:\> Start-MBSAgentService
Parameters
CommonParameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
0 commit comments