Microsoft.Windows.Storage.StorageBusCache.StorageBusDisk
DiskNumber
Number
Microsoft.Windows.Storage.StorageBusCache.StorageBusBinding
Attributes
switch ($this.psBase.Attributes)
{
# 0x04 skipped - disable read cache is always on / obsoleted by VRC
{ $_ -eq 0 } { "Default"; break }
{ $_ -band 0x01 } { "Enabled" }
{ $_ -band 0x02 } { "ReadCacheDisabled" }
{ $_ -band 0x08 } { "WriteCacheDisabled" }
{ $_ -band 0x10 } { "DelayDestage" }
}
Microsoft.Management.Infrastructure.CimInstance#ROOT/wmi/ClusPortDeviceInformation
DeviceState
switch ($this.psBase.CimInstanceProperties["DeviceState"].Value)
{
0 { "Disconnected"; break; }
1 { "Paused"; break; }
2 { "Draining"; break; }
3 { "Active"; break; }
4 { "Removed"; break; }
}
DeviceAttribute
switch ($this.psBase.CimInstanceProperties["DeviceAttribute"].Value)
{
{ $_ -band 0x00000001 } { "Virtual" }
{ $_ -band 0x00000002 } { "Orphan" }
{ $_ -band 0x00000004 } { "Hybrid" }
{ $_ -band 0x00000008 } { "Solid" }
{ $_ -band 0x00000010 } { "Incomplete" }
{ $_ -band 0x00000020 } { "Scheduler" }
{ $_ -band 0x00000040 } { "IncompleteSupport" }
{ $_ -band 0x00000080 } { "Hidden" }
{ $_ -band 0x00000100 } { "Resilient" }
{ $_ -band 0x00000200 } { "Paused" }
{ $_ -band 0x00000400 } { "BlockReadWrite" }
{ $_ -band 0x00000800 } { "Attention" }
{ $_ -band 0x00001000 } { "HasCachePartition" }
{ $_ -band 0x00002000 } { "SchedulerEnabled" }
{ $_ -band 0x00004000 } { "Partition" }
{ $_ -band 0x00008000 } { "BlockWrite" }
{ $_ -band 0x00010000 } { "VolatileReadCache" }
{ $_ -band 0x00020000 } { "Slow" }
}
DeviceType
switch ($this.psBase.CimInstanceProperties["DeviceType"].Value)
{
0 { "Disk"; break; }
1 { "Enclosure"; break; }
2 { "StorageScaleUnit"; break }
}
Number
DeviceNumber
Attributes
DeviceAttribute
Microsoft.Management.Infrastructure.CimInstance#ROOT/wmi/ClusPortPathInformation
PathState
switch ($this.psBase.CimInstanceProperties["PathState"].Value)
{
0 { "Disconnected"; break; }
1 { "Paused"; break; }
2 { "Draining"; break; }
3 { "Active"; break; }
4 { "Removed"; break; }
}
Microsoft.Management.Infrastructure.CimInstance#ROOT/wmi/ClusBfltPathInformation
Attributes
switch ($this.psBase.CimInstanceProperties["Attributes"].Value)
{
{ $_ -band 0x00000001 } { "Virtual" }
{ $_ -band 0x00000002 } { "Orphan" }
{ $_ -band 0x00000004 } { "Hybrid" }
{ $_ -band 0x00000008 } { "Solid" }
{ $_ -band 0x00000010 } { "Incomplete" }
{ $_ -band 0x00000020 } { "Scheduler" }
{ $_ -band 0x00000040 } { "IncompleteSupport" }
{ $_ -band 0x00000080 } { "Hidden" }
{ $_ -band 0x00000100 } { "Resilient" }
{ $_ -band 0x00000200 } { "Paused" }
{ $_ -band 0x00000400 } { "BlockReadWrite" }
{ $_ -band 0x00000800 } { "Attention" }
{ $_ -band 0x00001000 } { "HasCachePartition" }
{ $_ -band 0x00002000 } { "SchedulerEnabled" }
{ $_ -band 0x00004000 } { "Partition" }
{ $_ -band 0x00008000 } { "BlockWrite" }
{ $_ -band 0x00010000 } { "VolatileReadCache" }
{ $_ -band 0x00020000 } { "Slow" }
}
BusType
switch ($this.psBase.CimInstanceProperties["BusType"].Value)
{
0 { "Unknown" }
1 { "SCSI" }
2 { "ATAPI" }
3 { "ATA" }
4 { "1394" }
5 { "SSA" }
6 { "Fibre Channel" }
7 { "USB" }
8 { "RAID" }
9 { "iSCSI" }
10 { "SAS" }
11 { "SATA" }
12 { "SD" }
13 { "MMC" }
14 { "Virtual" }
15 { "File Backed Virtual" }
16 { "Spaces" }
17 { "NVMe" }
18 { "SCM" }
19 { "UFS" }
Default { "Unknown" }
}
DeviceType
switch ($this.psBase.CimInstanceProperties["DeviceType"].Value)
{
0 { "Disk"; break; }
1 { "Enclosure"; break; }
2 { "StorageScaleUnit"; break }
}
PathType
switch ($this.psBase.CimInstanceProperties["PathType"].Value)
{
0 { "ReadWrite" }
1 { "ReadOnly" }
2 { "Engaged" }
3 { "Maintenance" }
}
PathId
Id
Status
"{0:x8}" -f $this.psBase.CimInstanceProperties["Status"].Value
DeviceNumber
$n = $this.psBase.CimInstanceProperties["DeviceNumber"].Value
if ($n -ne [Uint32]::MaxValue) {
$n
}
Number
DeviceNumber
Microsoft.Management.Infrastructure.CimInstance#ROOT/wmi/ClusBfltCacheStoreInformation
Status
switch ($this.psBase.CimInstanceProperties["Status"].Value)
{
0 { "STATUS_SUCCESS" }
0x0000103 { "STATUS_PENDING" }
0x0000101 { "STATUS_ALERTED" }
default { "0x{0:x8}" -f $this.psBase.CimInstanceProperties["Status"].Value }
}