Add-WssDisksToSpacesPool
Adds physical disks to a storage pool.
Syntax
Add-WssDisksToSpacesPool
[-Pool] <SpacesPool>
[-Disks] <ICollection<Disk>>
[-Force]
[-Confirm]
[-WhatIf]
Description
The Add-WssDisksToSpacesPool cmdlet adds physical disks to a storage pool.
Examples
Example 1: Add a physical disk to a storage pool
PS C:\>$Disk = Get-WssDisk -ID "26a21bda-a627-11d7-9931-806e6f6e6963" PS C:\>$Pool = Get-WssSpacesPool -ID "13c41bda-a627-22d7-4631-806e6f6e6963" PS C:\> Add-WssDisksToSpacesPool -Disks $Disk -Pool $Pool
The first command gets the Disk object that has the ID 26a21bda-a627-11d7-9931-806e6f6e6963, and stores it in the $Disk variable.
The second command gets the storage pool that has the ID 13c41bda-a627-22d7-4631-806e6f6e6963, and stores it in the $Pool variable.
The third command adds the physical disk stored in the $Disk variable to the storage pool stored in the $Pool variable.
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 |
-Disks
Specifies the physical disks to add to the storage pool.
Type: | ICollection<Disk> |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
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 |
-Pool
Specifies a StoragePool object. To obtain a StoragePool object, use theGet-WssSpacesPool cmdlet.
Type: | SpacesPool |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
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