Invoke-SdHostVolumeSpaceReclaim
Contributors
Suggest changes
Initiates space reclamation on your host volume.
Syntax
Invoke-SdHostVolumeSpaceReclaim [-Path] <String> [-Session] <String> [-Host] <String> [-UnmapSize] <String> [-VdsId] <Guid> [-Session] <String> [-Host] <String> [-UnmapSize] <String>
Detailed Description
Initiates space reclamation on your host volume.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Path |
The mount point (i.e. G:\) or path to any file on the volume to process. |
true |
true (ByValue, ByPropertyName) |
|
Session |
Specifies the session ID from Open-SmConnection. |
false |
true (ByPropertyName) |
|
Host |
Specifies the name or IP address of the host on which you execute the operation. The default is your local machine. |
false |
true (ByPropertyName) |
|
UnmapSize |
Specifies the size of the blocks you want to reclaim. The size should be greater than 0 and less than 2147483648 bytes. |
false |
false |
|
VdsId |
Specifies your virtual disk service ID. |
true |
true (ByValue, ByPropertyName) |
Examples
Example 1: Reclaiming space
PS C:\> Invoke-SdHostVolumeSpaceReclaim -Path E:
This example syntax reclaims space no longer being used by the host operating system.