< Back
Import-MBSUsers
Post
NAME Import-MBSUsers
SYNOPSIS
The cmdlet imports users from CSV file to MBS via API 2.0
SYNTAX
Import-MBSUsers [-APIlogin] <String> [-APIpassword] <String> [[-LogFilePath] <String>] [[-UserFile] <String>]
[<CommonParameters>]
DESCRIPTION
The cmdlet imports users from CSV file to MBS via API 2.0
PARAMETERS
-APIlogin <String>
Mandatory parameter. Specify MSB API login name. You can generate new one in General settings
https://mspbackups.com/Admin/Settings.aspx
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-APIpassword <String>
Mandatory parameter. Specify MSB API password. You can generate new one in General settings
https://mspbackups.com/Admin/Settings.aspx
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LogFilePath <String>
Optional parameter. Specify log file path. The script uses \\api.log by default.
Required? false
Position? 3
Default value api.log
Accept pipeline input? false
Accept wildcard characters? false
-UserFile <String>
Optional parameter. Specify user csv file path. The script uses \\Users.csv by default.
Required? false
Position? 4
Default value Users.csv
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>.\\Import-Users.ps1 -APIlogin VFBB634wKpHQ -APIpassword ggH9ng6ertrB445BPDQQwU3
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>.\\Import-Users.ps1 -APIlogin VFBB634wKpHQ -APIpassword ggH9ng6ertrB445BPDQQwU3 -UserFile Users.csv
-LogFilePath Mylog.txt
RELATED LINKS
SYNOPSIS
The cmdlet imports users from CSV file to MBS via API 2.0
SYNTAX
Import-MBSUsers [-APIlogin] <String> [-APIpassword] <String> [[-LogFilePath] <String>] [[-UserFile] <String>]
[<CommonParameters>]
DESCRIPTION
The cmdlet imports users from CSV file to MBS via API 2.0
PARAMETERS
-APIlogin <String>
Mandatory parameter. Specify MSB API login name. You can generate new one in General settings
https://mspbackups.com/Admin/Settings.aspx
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-APIpassword <String>
Mandatory parameter. Specify MSB API password. You can generate new one in General settings
https://mspbackups.com/Admin/Settings.aspx
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-LogFilePath <String>
Optional parameter. Specify log file path. The script uses \\api.log by default.
Required? false
Position? 3
Default value api.log
Accept pipeline input? false
Accept wildcard characters? false
-UserFile <String>
Optional parameter. Specify user csv file path. The script uses \\Users.csv by default.
Required? false
Position? 4
Default value Users.csv
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>.\\Import-Users.ps1 -APIlogin VFBB634wKpHQ -APIpassword ggH9ng6ertrB445BPDQQwU3
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>.\\Import-Users.ps1 -APIlogin VFBB634wKpHQ -APIpassword ggH9ng6ertrB445BPDQQwU3 -UserFile Users.csv
-LogFilePath Mylog.txt
RELATED LINKS