Skip to content

Instantly share code, notes, and snippets.

@progre
Created December 9, 2017 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progre/e7a1f615e3309883a84e1adf9e056a4d to your computer and use it in GitHub Desktop.
Save progre/e7a1f615e3309883a84e1adf9e056a4d to your computer and use it in GitHub Desktop.
PS C:\WINDOWS\system32> date
2017年12月10日 0:13:57
PS C:\WINDOWS\system32> Get-PhysicalDisk
FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size
------------ ------------ --------- ------- ----------------- ------------ ----- ----
TOSHIBA DT01ACA200 17FH77WAS HDD False OK Healthy Auto-Select 1.82 TB
INTEL SSDSC2CT120A3 CVMP24140155120BGN SSD False OK Healthy Auto-Select 111.79 GB
WDC WD20 EZRZ-00Z5HB0 SCSI Disk Device WD-WCC4M4AX4DRA HDD False OK Healthy Auto-Select 1.82 TB
WDC WD20EZRZ-00Z5HB0 WD-WCC4M0SHUKXH HDD False OK Healthy Auto-Select 1.82 TB
PS C:\WINDOWS\system32> Get-Disk
Number Friendly Name Serial Number HealthStatus OperationalStatus Total Size Partition
Style
------ ------------- ------------- ------------ ----------------- ---------- ----------
0 INTEL SSDSC2CT120A3 CVMP24140155120BGN Healthy Online 111.79 GB GPT
6 Parity storage space {e348675b-3ebb-41e5-bb06-3cfd... Healthy Offline 3 TB GPT
PS C:\WINDOWS\system32> Get-StoragePool
FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly Size AllocatedSize
------------ ----------------- ------------ ------------ ---------- ---- -------------
Primordial OK Healthy True False 5.57 TB 5.46 TB
Storage pool OK Healthy False False 5.46 TB 1.86 TB
PS C:\WINDOWS\system32> Get-VirtualDisk
FriendlyName Usage MediaType ResiliencySettingName PhysicalDiskRedundancy OperationalStatus HealthStatus IsManualAttach Size FootprintOnPool StorageEfficiency
------------ ----- --------- --------------------- ---------------------- ----------------- ------------ -------------- ---- --------------- -----------------
Parity storage space Data Unspecified Parity 1 OK Healthy False 3 TB 1.86 TB 161.60%
PS C:\WINDOWS\system32> Get-PhysicalDisk | FL *
ClassName : MSFT_PhysicalDisk
Usage : Auto-Select
OperationalStatus : OK
UniqueIdFormat : FCPH Name
HealthStatus : Healthy
BusType : SATA
CannotPoolReason : In a Pool
SupportedUsages : {Auto-Select, Manual-Select, Hot Spare, Retired...}
MediaType : HDD
SpindleSpeed : Unknown
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_PhysicalDisk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{3ef14ec6-f5a1-
0321-68fc-651943a9cab5}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 5000039FE5D5044D
Description :
FriendlyName : TOSHIBA DT01ACA200
Manufacturer :
Model : TOSHIBA DT01ACA200
OperationalDetails :
PhysicalLocation : Integrated : Adapter 0 : Port 2
SerialNumber : 17FH77WAS
AdapterSerialNumber :
AllocatedSize : 681557622784
CanPool : False
DeviceId : 1
EnclosureNumber :
FirmwareVersion : MX4OABB0
IsIndicationEnabled :
IsPartial : False
LogicalSectorSize : 512
OtherCannotPoolReasonDescription :
PartNumber :
PhysicalSectorSize : 4096
Size : 2000381018112
SlotNumber :
SoftwareVersion :
StoragePoolUniqueId :
VirtualDiskFootprint : 680483880960
PSComputerName :
CimClass : root/microsoft/windows/storage:MSFT_PhysicalDisk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
ClassName : MSFT_PhysicalDisk
Usage : Auto-Select
OperationalStatus : OK
UniqueIdFormat : FCPH Name
HealthStatus : Healthy
BusType : SATA
CannotPoolReason : Insufficient Capacity
SupportedUsages : {Auto-Select, Manual-Select, Hot Spare, Retired...}
MediaType : SSD
SpindleSpeed : 0
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_PhysicalDisk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{40a3c527-19f8-
b1a1-9af0-8a0b3fe9795e}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 5001517BB2AA91C8
Description :
FriendlyName : INTEL SSDSC2CT120A3
Manufacturer :
Model : INTEL SSDSC2CT120A3
OperationalDetails :
PhysicalLocation : Integrated : Adapter 0 : Port 1
SerialNumber : CVMP24140155120BGN
AdapterSerialNumber :
AllocatedSize : 120032026624
CanPool : False
DeviceId : 0
EnclosureNumber :
FirmwareVersion : 300i
IsIndicationEnabled :
IsPartial : True
LogicalSectorSize : 512
OtherCannotPoolReasonDescription :
PartNumber :
PhysicalSectorSize : 512
Size : 120034123776
SlotNumber :
SoftwareVersion :
StoragePoolUniqueId :
VirtualDiskFootprint : 0
PSComputerName :
CimClass : root/microsoft/windows/storage:MSFT_PhysicalDisk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
ClassName : MSFT_PhysicalDisk
Usage : Auto-Select
OperationalStatus : OK
UniqueIdFormat : FCPH Name
HealthStatus : Healthy
BusType : SATA
CannotPoolReason : In a Pool
SupportedUsages : {Auto-Select, Manual-Select, Hot Spare, Retired...}
MediaType : HDD
SpindleSpeed : Unknown
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_PhysicalDisk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{a9b1a85c-c040-
3304-e9ce-a70e8a95ba88}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 50014EE26499E380
Description :
FriendlyName : WDC WD20 EZRZ-00Z5HB0 SCSI Disk Device
Manufacturer :
Model : WDC WD20EZRZ-00Z5HB0
OperationalDetails :
PhysicalLocation : Integrated : Adapter 0 : Port 4
SerialNumber : WD-WCC4M4AX4DRA
AdapterSerialNumber :
AllocatedSize : 681289187328
CanPool : False
DeviceId : 2
EnclosureNumber :
FirmwareVersion : 80.00A80
IsIndicationEnabled :
IsPartial : False
LogicalSectorSize : 512
OtherCannotPoolReasonDescription :
PartNumber :
PhysicalSectorSize : 4096
Size : 2000381018112
SlotNumber :
SoftwareVersion :
StoragePoolUniqueId :
VirtualDiskFootprint : 680483880960
PSComputerName :
CimClass : root/microsoft/windows/storage:MSFT_PhysicalDisk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
ClassName : MSFT_PhysicalDisk
Usage : Auto-Select
OperationalStatus : OK
UniqueIdFormat : FCPH Name
HealthStatus : Healthy
BusType : SATA
CannotPoolReason : In a Pool
SupportedUsages : {Auto-Select, Manual-Select, Hot Spare, Retired...}
MediaType : HDD
SpindleSpeed : Unknown
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_PhysicalDisk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{df3e7c81-f7d0-
a626-37f6-6bb9b2bd5c6e}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 50014EE2B8F0F708
Description :
FriendlyName : WDC WD20EZRZ-00Z5HB0
Manufacturer :
Model : WDC WD20EZRZ-00Z5HB0
OperationalDetails :
PhysicalLocation : Integrated : Adapter 0 : Port 5
SerialNumber : WD-WCC4M0SHUKXH
AdapterSerialNumber :
AllocatedSize : 681289187328
CanPool : False
DeviceId : 3
EnclosureNumber :
FirmwareVersion : 80.00A80
IsIndicationEnabled :
IsPartial : False
LogicalSectorSize : 512
OtherCannotPoolReasonDescription :
PartNumber :
PhysicalSectorSize : 4096
Size : 2000381018112
SlotNumber :
SoftwareVersion :
StoragePoolUniqueId :
VirtualDiskFootprint : 680215445504
PSComputerName :
CimClass : root/microsoft/windows/storage:MSFT_PhysicalDisk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
PS C:\WINDOWS\system32> Get-Disk | FL *
DiskNumber : 0
PartitionStyle : GPT
ProvisioningType : Fixed
OperationalStatus : Online
HealthStatus : Healthy
BusType : SATA
UniqueIdFormat : FCPH Name
OfflineReason :
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\WSP_Disk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:DI:\\?\scsi#disk&ven_inte___&prod_ssdsc2
ct120a3#4&26892dd9&0&010000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 5001517BB2AA91C8
AdapterSerialNumber :
AllocatedSize : 120032026624
BootFromDisk : True
FirmwareVersion : 300i
FriendlyName : INTEL SSDSC2CT120A3
Guid : {88ed10f0-bc10-4e14-b234-63f8c367ad79}
IsBoot : True
IsClustered : False
IsHighlyAvailable : False
IsOffline : False
IsReadOnly : False
IsScaleOut : False
IsSystem : True
LargestFreeExtent : 2097152
Location : Integrated : Adapter 0 : Port 1
LogicalSectorSize : 512
Manufacturer :
Model : INTEL SSDSC2CT120A3
Number : 0
NumberOfPartitions : 3
Path : \\?\scsi#disk&ven_inte___&prod_ssdsc2ct120a3#4&26892dd9&0&010000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
PhysicalSectorSize : 512
SerialNumber : CVMP24140155120BGN
Signature :
Size : 120034123776
PSComputerName :
CimClass : ROOT/Microsoft/Windows/Storage:MSFT_Disk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
DiskNumber : 6
PartitionStyle : GPT
ProvisioningType : Thin
OperationalStatus : Offline
HealthStatus : Healthy
BusType : Spaces
UniqueIdFormat : Vendor Specific
OfflineReason : Critical Write Failures
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\WSP_Disk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:DI:\\?\storage#disk#{e348675b-3ebb-41e5-
bb06-3cfd65ad2bf1}#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 5B6748E3BB3EE541BB063CFD65AD2BF1
AdapterSerialNumber :
AllocatedSize : 3298534883328
BootFromDisk : False
FirmwareVersion : 0.1
FriendlyName : Parity storage space
Guid : {148e8074-0e32-11e7-8afc-7085c20eab9b}
IsBoot : False
IsClustered : False
IsHighlyAvailable : False
IsOffline : True
IsReadOnly : True
IsScaleOut : False
IsSystem : False
LargestFreeExtent : 0
Location :
LogicalSectorSize : 4096
Manufacturer : Msft
Model : Storage Space
Number : 6
NumberOfPartitions : 2
Path : \\?\storage#disk#{e348675b-3ebb-41e5-bb06-3cfd65ad2bf1}#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
PhysicalSectorSize : 4096
SerialNumber : {e348675b-3ebb-41e5-bb06-3cfd65ad2bf1}
Signature :
Size : 3298534883328
PSComputerName :
CimClass : ROOT/Microsoft/Windows/Storage:MSFT_Disk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
PS C:\WINDOWS\system32> Get-StoragePool | FL *
Usage : Other
OperationalStatus : OK
HealthStatus : Healthy
ProvisioningTypeDefault : Fixed
SupportedProvisioningTypes : {Thin, Fixed}
MediaTypeDefault : Unspecified
ReadOnlyReason : None
RepairPolicy : Parallel
RetireMissingPhysicalDisks : Auto
WriteCacheSizeDefault : Auto
Version : Windows Server 2016 RS3
FaultDomainAwarenessDefault : PhysicalDisk
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_StoragePool.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:SP:{681b49b3-8886-
11e6-8abf-806e6f6e6963}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : {681b49b3-8886-11e6-8abf-806e6f6e6963}
AllocatedSize : 6000908173312
ClearOnDeallocate : False
EnclosureAwareDefault : False
FriendlyName : Primordial
IsClustered : False
IsPowerProtected : False
IsPrimordial : True
IsReadOnly : False
LogicalSectorSize :
Name :
OtherOperationalStatusDescription :
OtherUsageDescription :
PhysicalSectorSize :
ResiliencySettingNameDefault : Mirror
Size : 6121230925824
SupportsDeduplication : False
ThinProvisioningAlertThresholds : {70}
WriteCacheSizeMax : 18446744073709551614
WriteCacheSizeMin : 0
PSComputerName :
CimClass : ROOT/Microsoft/Windows/Storage:MSFT_StoragePool
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
Usage : Other
OperationalStatus : OK
HealthStatus : Healthy
ProvisioningTypeDefault : Fixed
SupportedProvisioningTypes : {Thin, Fixed}
MediaTypeDefault : Unspecified
ReadOnlyReason : None
RepairPolicy : Parallel
RetireMissingPhysicalDisks : Auto
WriteCacheSizeDefault : Auto
Version : Windows Server 2016 RS3
FaultDomainAwarenessDefault : PhysicalDisk
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_StoragePool.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:SP:{a9bbd592-5fd6-
4a00-b38d-fa40da2cb5ec}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : {a9bbd592-5fd6-4a00-b38d-fa40da2cb5ec}
AllocatedSize : 2041988513792
ClearOnDeallocate : False
EnclosureAwareDefault : False
FriendlyName : Storage pool
IsClustered : False
IsPowerProtected : False
IsPrimordial : False
IsReadOnly : False
LogicalSectorSize : 4096
Name :
OtherOperationalStatusDescription :
OtherUsageDescription :
PhysicalSectorSize : 4096
ResiliencySettingNameDefault : Mirror
Size : 5998995570688
SupportsDeduplication : False
ThinProvisioningAlertThresholds : {70}
WriteCacheSizeMax : 18446744073709551614
WriteCacheSizeMin : 0
PSComputerName :
CimClass : ROOT/Microsoft/Windows/Storage:MSFT_StoragePool
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
PS C:\WINDOWS\system32> Get-VirtualDisk | FL *
Usage : Data
NameFormat :
OperationalStatus : OK
HealthStatus : Healthy
ProvisioningType : Thin
AllocationUnitSize : 268435456
MediaType : Unspecified
ParityLayout : Rotated Parity
Access : Read/Write
UniqueIdFormat : Vendor Specific
DetachedReason : None
WriteCacheSize : 33554432
FaultDomainAwareness : PhysicalDisk
ColumnIsolation : PhysicalDisk
ObjectId : {1}\\MOTHERBASE\root/Microsoft/Windows/Storage/Providers_v2\SPACES_VirtualDisk.ObjectId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:VD:{a9bbd592-5fd6-
4a00-b38d-fa40da2cb5ec}{e348675b-3ebb-41e5-bb06-3cfd65ad2bf1}"
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 5B6748E3BB3EE541BB063CFD65AD2BF1
AllocatedSize : 1360430891008
FootprintOnPool : 2041183207424
FriendlyName : Parity storage space
Interleave : 262144
IsDeduplicationEnabled : False
IsEnclosureAware : False
IsManualAttach : False
IsSnapshot : False
IsTiered : False
LogicalSectorSize : 4096
Name :
NumberOfAvailableCopies :
NumberOfColumns : 3
NumberOfDataCopies : 1
NumberOfGroups : 1
OtherOperationalStatusDescription :
OtherUsageDescription :
PhysicalDiskRedundancy : 1
PhysicalSectorSize : 4096
ReadCacheSize : 0
RequestNoSinglePointOfFailure : False
ResiliencySettingName : Parity
Size : 3298534883328
UniqueIdFormatDescription :
PSComputerName :
CimClass : ROOT/Microsoft/Windows/Storage:MSFT_VirtualDisk
CimInstanceProperties : {ObjectId, PassThroughClass, PassThroughIds, PassThroughNamespace...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment