Skip to content

Instantly share code, notes, and snippets.

@progre
Created December 9, 2017 09:13
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/c145bda005083e4823e93a95a8efec58 to your computer and use it in GitHub Desktop.
Save progre/c145bda005083e4823e93a95a8efec58 to your computer and use it in GitHub Desktop.
PS C:\WINDOWS\system32> Set-Physicaldisk -FriendlyName "WDC WD20 EZRZ-00Z5HB0 SCSI Disk Device" -Mediatype HDD
PS C:\WINDOWS\system32> Get-PhysicalDisk
FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage
------------ ------------ --------- ------- ----------------- ------------ -----
TOSHIBA DT01ACA200 17FH77WAS HDD False OK Healthy Auto-Select
INTEL SSDSC2CT120A3 CVMP24140155120BGN SSD False OK Healthy Auto-Select
WDC WD20 EZRZ-00Z5HB0 SCSI Disk Device WD-WCC4M4AX4DRA HDD False OK Healthy Auto-Select
WDC WD20EZRZ-00Z5HB0 WD-WCC4M0SHUKXH HDD False OK Healthy Auto-Select
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.Obje
ctId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{3ef14ec6-f5a1-0321-68fc-651943a9cab
5}"
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.Obje
ctId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{40a3c527-19f8-b1a1-9af0-8a0b3fe9795
e}"
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.Obje
ctId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{a9b1a85c-c040-3304-e9ce-a70e8a95ba8
8}"
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.Obje
ctId="{681b49b4-8886-11e6-8abf-806e6f6e6963}:PD:{df3e7c81-f7d0-a626-37f6-6bb9b2bd5c6
e}"
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-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 IsMa
nual
Atta
ch
------------ ----- --------- --------------------- ---------------------- ----------------- ------------ ----
Parity storage space Data Unspecified Parity 1 OK Healthy F...
PS C:\WINDOWS\system32> Get-VirtualDisk
FriendlyName Usage MediaType ResiliencySettingName PhysicalDiskRedundancy OperationalStatus HealthStatus IsManualAttach Size FootprintOnPool Storage
Efficie
ncy
------------ ----- --------- --------------------- ---------------------- ----------------- ------------ -------------- ---- --------------- -------
Parity storage space Data Unspecified Parity 1 OK Healthy False 3 TB 1.86 TB 161.60%
PS C:\WINDOWS\system32> Repair-VirtualDisk -FriendlyName "Parity storage space" -asJob
Id Name PSJobTypeName State HasMoreData Location Command
-- ---- ------------- ----- ----------- -------- -------
9 CimJob5 CimJob Running True MOTHERBASE Repair-VirtualDisk -Fr...
PS C:\WINDOWS\system32> get-storagejob
Name IsBackgroundTask ElapsedTime JobState PercentComplete BytesProcessed BytesTotal
---- ---------------- ----------- -------- --------------- -------------- ----------
Parity storage space-Repair False 00:00:00 Completed 100 0 B 0 B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment