Initialize-WssBackupDisk
Prepares a disk for, or removes a disk from, a sbs_sbs8_1 backup.
Syntax
Initialize-WssBackupDisk
[-Disk] <Disk>
[-Name] <String>
[-Force]
[-Confirm]
[-WhatIf]
Initialize-WssBackupDisk
[-Disk] <Disk>
[-Remove]
[-Force]
[-Confirm]
[-WhatIf]
Description
The Initialize-WssBackupDisk cmdlet prepares a disk to use as storage for a sbs_sbs8_1 backup or removes a disk from a sbs_sbs8_2 backup. When the cmdlet prepares a disk for backup storage, it automatically formats the disk.
Examples
Example 1: Initialize a backup disk
PS C:\>$ContosoBUDisk515 = Get-WssDisk PS C:\>Initialize-WssBackupDisk -Disk $ContosoDisk515[0] -Name "ContosoWSEBackup40"
This example initializes a sbs_sbs8_2 backup disk.
The first command gets a list of available disks and stores it in the variable named $ContosoBUDisk515.
The second command initializes the first backup disk (located in position 0) in the array in $ContosoDisk515 and gives the new backup disk the name ContosoWSEBackup40.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Disk
Specifies the disk to add to or remove from a sbs_sbs8_2 backup.
Type: | Disk |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Force
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of the backup disk.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Remove
Indicates that the cmdlet removes the disk from a sbs_sbs8_2 backup.
Type: | SwitchParameter |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Disk
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for