A newer release of this product is available.
        
        
      Set-SdStorageSize
Expands or shrinks the size of a Windows disk.
Syntax
Set-SdStorageSize [-Path] <String> [-Size] <String> [-Session] <String> [-Host] <String>
Detailed Description
Expands or shrinks the size of a Windows disk.
Parameters
| Name | Description | Required? | Pipeline Input | Default Value | 
|---|---|---|---|---|
| Path | Specifies the drive letter or mount point of the file system you want to resize. | true | true (ByPropertyName) | |
| Size | Specifies the size to which you want to expand or shrink your Windows disk. | true | false | |
| Session | Specifies the session ID from Open-SmConnection. | false | true (ByPropertyName) | |
| Host | Specifies the name of the computer or host on which the SnapDrive service you want to perform the operation runs. The default is your local machine. | false | true (ByPropertyName) | 
Examples
Example 1: Resizing a CSV
PS C:\> Set-SdStorageSize -path C:\ClusterStorage\Volume1\ -Size 1.1G -Verbose
This example syntax resizes a CSV.
Example 2: Resizing a disk without a mount point
PS C:\> Set-SdStorageSize -Path D:\Mount -Size 10G -Shrink -Verbose
This example syntax resizes a drive without a mount point.
Example 3: Resize a drive
PS C:\> Set-SdStorageSize -Path M:\ -Size 10G -Verbose
This example syntax resizes a drive.
 PDFs
PDFs