Microsoft.Management.Infrastructure.CimInstance#MSFT_Disk PartitionStyle switch ($this.psBase.CimInstanceProperties["PartitionStyle"].Value) { 0 { "RAW" } 1 { "MBR" } 2 { "GPT" } Default { "Unknown" } } ProvisioningType switch ($this.psBase.CimInstanceProperties["ProvisioningType"].Value) { 0 { "Unknown" } 1 { "Thin" } 2 { "Fixed" } Default { "Unknown" } } OperationalStatus switch ($this.psBase.CimInstanceProperties["OperationalStatus"].Value) { 0 { "Unknown" } 1 { "Online" } 2 { "Not Ready" } 3 { "No Media" } 4 { "Offline" } 5 { "Failed" } 6 { "Missing" } Default { "Unknown" } } HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Unknown" } 1 { "Healthy" } 4 { "Failing" } 8 { "Failed" } Default { "Unknown" } } 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" } Default { "Unknown" } } UniqueIdFormat switch ($this.psBase.CimInstanceProperties["UniqueIdFormat"].Value) { 0 { "Vendor Specific" } 1 { "Vendor Id" } 2 { "EUI64" } 3 { "FCPH Name" } 8 { "SCSI Name String" } } OfflineReason switch ($this.psBase.CimInstanceProperties["OfflineReason"].Value) { 1 { "Policy" } 2 { "Redundant Path" } 3 { "Snapshot" } 4 { "Collision" } 5 { "Resource Exhaustion" } 6 { "Critical Write Failures" } 7 { "Data Integrity Scan Required" } Default { $null } } Microsoft.Management.Infrastructure.CimInstance#MSFT_Partition OperationalStatus switch ($this.psBase.CimInstanceProperties["OperationalStatus"].Value) { 0 { "Unknown" } 1 { "Online" } 3 { "No Media" } 5 { "Failed" } 4 { "Offline" } Default { "Unknown" } } Type if ($this.psBase.CimInstanceProperties["MbrType"].Value -gt 0) { switch ($this.psBase.CimInstanceProperties["MbrType"].Value) { 1 { "FAT12" } 2 { "Xenix" } 3 { "Xenix" } 4 { "FAT16" } 5 { "Extended" } 6 { "Logical" } 7 { "IFS" } 10 { "OS/2 BootMgr" } 11 { "FAT32" } 12 { "FAT32 XINT13" } 14 { "XINT13" } 15 { "XINT13 Extended" } 65 { "PReP" } 66 { "LDM" } 99 { "Unix" } 231 { "Space Protective" } Default { "Unknown" } } } else { switch ($this.psBase.CimInstanceProperties["GptType"].Value) { "{c12a7328-f81f-11d2-ba4b-00a0c93ec93b}" { "System" } "{e3c9e316-0b5c-4db8-817d-f92df00215ae}" { "Reserved" } "{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}" { "Basic" } "{5808c8aa-7e8f-42e0-85d2-e1e90434cfb3}" { "LDM Metadata" } "{af9b60a0-1431-4f62-bc68-3311714a69ad}" { "LDM Data" } "{de94bba4-06d1-4d40-a16a-bfd50179d6ac}" { "Recovery" } "{e75caf8f-f680-4cee-afa3-b001e56efc2d}" { "Space Protective" } Default { "Unknown" } } } Microsoft.Management.Infrastructure.CimInstance#MSFT_VirtualDisk Usage if ( $this.psBase.CimInstanceProperties["Usage"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["Usage"].Value) { 0 { "Unknown" } 1 { "Other" } 2 { "Unrestricted" } 3 { "Reserved for ComputerSystem (the block server)" } 4 { "Reserved by Replication Services" } 5 { "Reserved by Migration Services" } 6 { "Local Replica Source" } 7 { "Remote Replica Source" } 8 { "Local Replica Target" } 9 { "Remote Replica Target" } 10 { "Local Replica Source or Target" } 11 { "Remote Replica Source or Target" } 12 { "Delta Replica Target" } 13 { "Element Component" } 14 { "Reserved as Pool Contributer" } 15 { "Composite Volume Member" } 16 { "Composite LogicalDisk Member" } 17 { "Reserved for Sparing" } Default { "Unknown" } } } else { $null } NameFormat if ( $this.psBase.CimInstanceProperties["NameFormat"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["NameFormat"].Value) { 0 { "Unknown" } 1 { "Other" } 2 { "VPD83NAA6" } 3 { "VPD83NAA5" } 4 { "VPD83Type2" } 5 { "VPD83Type1" } 6 { "VPD83Type0" } 7 { "SNVM" } 8 { "NodeWWN" } 9 { "NAA" } 10 { "EUI64" } 11 { "T10VID" } Default { "Unknown" } } } else { $null } OperationalStatus $_status = @(); foreach( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "InService" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } 53250 { $_status += "Detached" } 53251 { $_status += "Incomplete" } Default { $_status += "Unknown" } } } $_status; HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } 5 { "Unknown" } Default { "Unknown" } } ProvisioningType if ( $this.psBase.CimInstanceProperties["ProvisioningType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["ProvisioningType"].Value) { 0 { "Unknown" } 1 { "Thin" } 2 { "Fixed" } Default { "Unknown" } } } else { $null } ParityLayout if ( $this.psBase.CimInstanceProperties["ParityLayout"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["ParityLayout"].Value) { 1 { "Non-rotated Parity" } 2 { "Rotated Parity" } Default { "Unknown" } } } else { $null } Access if ( $this.psBase.CimInstanceProperties["Access"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["Access"].Value) { 0 { "Unknown" } 1 { "Readable" } 2 { "Writeable" } 3 { "Read/Write" } 4 { "Write Once" } Default { "Unknown" } } } else { $null } UniqueIdFormat if ( $this.psBase.CimInstanceProperties["UniqueIdFormat"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["UniqueIdFormat"].Value) { 0 { "Vendor Specific" } 1 { "Vendor Id" } 2 { "EUI64" } 3 { "FCPH Name" } 8 { "SCSI Name String" } } } else { $null } DetachedReason if ( $this.psBase.CimInstanceProperties["DetachedReason"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["DetachedReason"].Value) { 0 { "Unknown" } 1 { "None" } 2 { "By Policy" } 3 { "Majority Disks Unhealthy" } 4 { "Incomplete" } Default { "Unknown" } } } else { $null } WriteCacheSize if ( $this.psBase.CimInstanceProperties["WriteCacheSize"].Value -eq [System.UInt64]::MaxValue ) { "Auto" } else { $this.psBase.CimInstanceProperties["WriteCacheSize"].Value } GetSecurityDescriptor SetSecurityDescriptor Microsoft.Management.Infrastructure.CimInstance#MSFT_PhysicalDisk Usage if ( $this.psBase.CimInstanceProperties["Usage"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ( $this.psBase.CimInstanceProperties["Usage"].Value ) { 0 { "Unknown" } 1 { "Auto-Select" } 2 { "Manual-Select" } 3 { "Hot Spare" } 4 { "Retired" } 5 { "Journal" } Default { "Unknown" } } } else { $null } OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "In Service" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } 53252 { $_status += "Failed Media" } 53253 { $_status += "Split" } 53254 { $_status += "Stale Metadata" } 53255 { $_status += "IO Error" } 53256 { $_status += "Unrecognized Metadata" } Default { "Unknown" } } } $_status; HealthStatus switch ( $this.psBase.CimInstanceProperties["HealthStatus"].Value ) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } 5 { "Unknown" } Default { "Unknown" } } BusType if ( $this.psBase.CimInstanceProperties["BusType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { 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" } Default { "Unknown" } } } else { $null } CannotPoolReason $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["CannotPoolReason"].Value ) { switch ( $status ) { 0 { $_status += "Unknown" } 1 { $_status += "Other" } 2 { $_status += "In a Pool" } 3 { $_status += "Not Healthy" } 4 { $_status += "Removable Media" } 5 { $_status += "In Use by Cluster" } 6 { $_status += "Offline" } 7 { $_status += "Insufficient Capacity" } 8 { $_status += "Spare Disk" } Default { "Unknown" } } } $_status; SupportedUsages $_usages = @(); foreach ( $_usage in $this.psBase.CimInstanceProperties["SupportedUsages"].Value ) { switch ( $_usage ) { 1 { $_usages += "Auto-Select" } 2 { $_usages += "Manual-Select" } 3 { $_usages += "Hot Spare" } 4 { $_usages += "Retired" } 5 { $_usages += "Journal" } Default { "Unknown" } } } $_usages; MediaType switch ( $this.psBase.CimInstanceProperties["MediaType"].Value ) { 0 { "UnSpecified" } 3 { "HDD" } 4 { "SSD" } Default { "UnSpecified" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageEnclosure HealthStatus switch ( $this.psBase.CimInstanceProperties["HealthStatus"].Value ) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } 5 { "Unknown" } Default { "Unknown" } } PowerSupplyOperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["PowerSupplyOperationalStatus"].Value ) { switch ( $status ) { 2 { $_status += "OK" } 3 { $_status += "Degraded" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 53257 { $_status += "Not Installed" } 53258 { $_status += "Not Available" } 53259 { $_status += "No Access Allowed" } 53260 { $_status += "Not Reported" } Default { "Unknown" } } } $_status; FanOperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["FanOperationalStatus"].Value ) { switch ( $status ) { 2 { $_status += "OK" } 3 { $_status += "Degraded" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 53257 { $_status += "Not Installed" } 53258 { $_status += "Not Available" } 53259 { $_status += "No Access Allowed" } 53260 { $_status += "Not Reported" } Default { "Unknown" } } } $_status; TemperatureSensorOperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["TemperatureSensorOperationalStatus"].Value ) { switch ( $status ) { 2 { $_status += "OK" } 3 { $_status += "Degraded" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 53257 { $_status += "Not Installed" } 53258 { $_status += "Not Available" } 53259 { $_status += "No Access Allowed" } 53260 { $_status += "Not Reported" } Default { "Unknown" } } } $_status; VoltageSensorOperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["VoltageSensorOperationalStatus"].Value ) { switch ( $status ) { 2 { $_status += "OK" } 3 { $_status += "Degraded" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 53257 { $_status += "Not Installed" } 53258 { $_status += "Not Available" } 53259 { $_status += "No Access Allowed" } 53260 { $_status += "Not Reported" } Default { "Unknown" } } } $_status; CurrentSensorOperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["CurrentSensorOperationalStatus"].Value ) { switch ( $status ) { 2 { $_status += "OK" } 3 { $_status += "Degraded" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 53257 { $_status += "Not Installed" } 53258 { $_status += "Not Available" } 53259 { $_status += "No Access Allowed" } 53260 { $_status += "Not Reported" } Default { "Unknown" } } } $_status; IOControllerOperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["IOControllerOperationalStatus"].Value ) { switch ( $status ) { 2 { $_status += "OK" } 3 { $_status += "Degraded" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 53257 { $_status += "Not Installed" } 53258 { $_status += "Not Available" } 53259 { $_status += "No Access Allowed" } 53260 { $_status += "Not Reported" } Default { "Unknown" } } } $_status; Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageNode NameFormat if ( $this.psBase.CimInstanceProperties["NameFormat"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["NameFormat"].Value) { 1 { "Other" } 2 { "IP" } 3 { "Dial" } 4 { "HID" } 5 { "NWA" } 6 { "HWA" } 7 { "X25" } 8 { "ISDN" } 9 { "IPX" } 10 { "DCC" } 11 { "ICD" } 12 { "E.164" } 13 { "SNA" } 14 { "OID/OSI" } 15 { "WWN" } 16 { "NAA" } Default { "Unknown" } } } else { $null } OperationalStatus switch ($this.psBase.CimInstanceProperties["OperationalStatus"].Value) { 0 { "Unknown" } 2 { "Up" } 6 { "Down" } 8 { "Joining" } 10 { "Paused" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_StoragePool Usage if ( $this.psBase.CimInstanceProperties["Usage"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["Usage"].Value) { 0 { "Unknown" } 1 { "Other" } 2 { "Unrestricted" } 3 { "Reserved for ComputerSystem (the block server)" } 4 { "Reserved as a Delta Replica Container" } 5 { "Reserved for Migration Services" } 6 { "Reserved for Local Replication Services" } 7 { "Reserved for Remote Replication Services" } 8 { "Reserved for Sparing" } Default { "Unknown" } } } else { $null } OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "In Service" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } 53248 { $_status += "Read-only" } 53249 { $_status += "Incomplete" } Default { "Unknown" } } } $_status; HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } 5 { "Unknown" } Default { "Unknown" } } ProvisioningTypeDefault if ( $this.psBase.CimInstanceProperties["ProvisioningTypeDefault"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["ProvisioningTypeDefault"].Value) { 0 { "Unknown" } 1 { "Thin" } 2 { "Fixed" } Default { "Unknown" } } } else { $null } SupportedProvisioningTypes $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["SupportedProvisioningTypes"].Value ) { switch ( $status ) { 0 { $_status += "Unknown" } 1 { $_status += "Thin" } 2 { $_status += "Fixed" } Default { "Unknown" } } } $_status; ReadOnlyReason if ( $this.psBase.CimInstanceProperties["ReadOnlyReason"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["ReadOnlyReason"].Value) { 0 { "Unknown" } 1 { "None" } 2 { "By Policy" } 3 { "Majority Disks Unhealthy" } 4 { "Starting" } Default { "Unknown" } } } else { $null } RepairPolicy if ( $this.psBase.CimInstanceProperties["RepairPolicy"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ( $this.psBase.CimInstanceProperties["RepairPolicy"].Value ) { 2 { "Sequential" } 3 { "Parallel" } Default { "Parallel" } } } else { $null } RetireMissingPhysicalDisks if ( $this.psBase.CimInstanceProperties["RetireMissingPhysicalDisks"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ( $this.psBase.CimInstanceProperties["RetireMissingPhysicalDisks"].Value ) { 0 { "Unknown" } 1 { "Auto" } 2 { "Always" } 3 { "Never" } Default { "Unknown" } } } else { $null } WriteCacheSizeDefault if ( $this.psBase.CimInstanceProperties["WriteCacheSizeDefault"].Value -eq [System.UInt64]::MaxValue ) { "Auto" } else { $this.psBase.CimInstanceProperties["WriteCacheSizeDefault"].Value } FileSystem switch ($this.psBase.CimInstanceProperties["FileSystem"].Value) { 0 { "Unknown" } 2 { "UFS" } 3 { "HFS" } 4 { "FAT" } 5 { "FAT16" } 6 { "FAT32" } 7 { "NTFS4" } 8 { "NTFS5" } 9 { "XFS" } 10 { "AFS" } 11 { "EXT2" } 12 { "EXT3" } 13 { "REISERFS" } 14 { "NTFS" } 15 { "ReFS" } 32768 { "CSVFS_NTFS" } 32769 { "CSVFS_ReFS" } Default { "Unknown" } } Version switch ($this.psBase.CimInstanceProperties["Version"].Value) { 1 { "Windows Server 2012" } 2 { "Windows Server 2012 R2 Preview" } 3 { "Windows Server 2012 R2" } Default { "Unknown" } } GetSecurityDescriptor SetSecurityDescriptor Microsoft.Management.Infrastructure.CimInstance#MSFT_ResiliencySetting ParityLayout if ( $this.psBase.CimInstanceProperties["ParityLayout"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["ParityLayout"].Value) { 1 { "Non-rotated Parity" } 2 { "Rotated Parity" } Default { "Unknown" } } } else { $null } NumberOfColumnsDefault if ( $this.psBase.CimInstanceProperties["NumberOfColumnsDefault"].Value -eq [System.UInt16]::MaxValue ) { "Auto" } else { $this.psBase.CimInstanceProperties["NumberOfColumnsDefault"].Value } Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageProvider Type switch ($this.psBase.CimInstanceProperties["Type"].Value) { 1 { "SMP" } 2 { "SMI-S" } Default { "Unknown" } } RemoteSubsystemCacheMode switch ($this.psBase.CimInstanceProperties["RemoteSubsystemCacheMode"].Value) { 0 { "Unknown" } 2 { "Disabled" } 3 { "Manual-Discovery" } Default { "Unknown" } } SupportedRemoteSubsystemCacheModes $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["SupportedRemoteSubsystemCacheModes"].Value ) { switch ( $status ) { 0 { $_status += "Unknown" } 2 { $_status += "Disabled" } 3 { $_status += "Manual-Discovery" } Default { "Unknown" } } } $_status; GetSecurityDescriptor SetSecurityDescriptor Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageSubSystem NameFormat if ( $this.psBase.CimInstanceProperties["NameFormat"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["NameFormat"].Value) { 1 { "Other" } 2 { "IP" } 3 { "Dial" } 4 { "HID" } 5 { "NWA" } 6 { "HWA" } 7 { "X25" } 8 { "ISDN" } 9 { "IPX" } 10 { "DCC" } 11 { "ICD" } 12 { "E.164" } 13 { "SNA" } 14 { "OID/OSI" } 15 { "WWN" } 16 { "NAA" } Default { "Unknown" } } } else { $null } HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } Default { "Unknown" } } OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "In Service" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } Default { $_status += "Unknown" } } } $_status; MaskingValidInitiatorIdTypes $_type = @(); foreach ( $type in $this.psBase.CimInstanceProperties["MaskingValidInitiatorIdTypes"].Value ) { switch ( $type ) { 1 { $_type += "Other" } 2 { $_type += "Port WWN" } 3 { $_type += "Node WWN" } 4 { $_type += "Host Name" } 5 { $_type += "iSCSI Name" } 6 { $_type += "Switch WWN" } 7 { $_type += "SAS Address" } Default { $_type += "Unknown" } } } $_type; MaskingPortsPerView switch ($this.psBase.CimInstanceProperties["MaskingPortsPerView"].Value) { 2 { "One TargetPort per view" } 3 { "Multiple target ports per view" } 4 { "All target ports share the same view" } Default { "Unknown" } } DataTieringType if ( $this.psBase.CimInstanceProperties["DataTieringType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["DataTieringType"].Value) { 0 { "Unknown" } 1 { "Not Supported" } 2 { "Manual" } 3 { "Auto" } Default { "Unknown" } } } else { $null } iSCSITargetCreationScheme if ( $this.psBase.CimInstanceProperties["iSCSITargetCreationScheme"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["iSCSITargetCreationScheme"].Value) { 0 { "Unknown" } 1 { "Not Supported" } 2 { "Manual" } 3 { "Auto" } Default { "Unknown" } } } else { $null } SupportedHostType $_type = @(); foreach ( $type in $this.psBase.CimInstanceProperties["SupportedHostType"].Value ) { switch ( $type ) { 0 { $_type += "Unknown" } 1 { $_type += "Other" } 2 { $_type += "Standard" } 3 { $_type += "Solaris" } 4 { $_type += "HPUX" } 5 { $_type += "OpenVMS" } 6 { $_type += "Tru64" } 7 { $_type += "Netware" } 8 { $_type += "Sequent" } 9 { $_type += "AIX" } 10 { $_type += "DGUX" } 11 { $_type += "Dynix" } 12 { $_type += "Irix" } 13 { $_type += "Cisco iSCSI Storage Router" } 14 { $_type += "Linux" } 15 { $_type += "Microsoft Windows" } 16 { $_type += "OS400" } 17 { $_type += "TRESPASS" } 18 { $_type += "HI-UX" } 19 { $_type += "VMware ESXi" } 20 { $_type += "Microsoft Windows Server 2008" } 21 { $_type += "Microsoft Windows Server 2003" } Default { $_type += "Unknown" } } } $_type; GetSecurityDescriptor SetSecurityDescriptor Microsoft.Management.Infrastructure.CimInstance#MSFT_Volume HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Healthy" } 1 { "Scan Needed" } 2 { "Spot Fix Needed" } 3 { "Full Repair Needed" } Default { "Unknown" } } DriveType switch ($this.psBase.CimInstanceProperties["DriveType"].Value) { 0 { "Unknown" } 1 { "Invalid Root Path" } 2 { "Removable" } 3 { "Fixed" } 4 { "Remote" } 5 { "CD-ROM" } 6 { "RAM Disk" } Default { "Unknown" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_TargetPort ConnectionType if ( $this.psBase.CimInstanceProperties["ConnectionType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["ConnectionType"].Value) { 1 { "Other" } 2 { "Fibre Channel" } 3 { "Parallel SCSI" } 4 { "SSA" } 5 { "IEEE 1394" } 6 { "RDMA" } 7 { "iSCSI" } 8 { "SAS" } 9 { "ADT " } } } else { $null } Role if ( $this.psBase.CimInstanceProperties["Role"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["Role"].Value) { 0 { "Unknown" } 1 { "Initiator" } 2 { "Target" } 3 { "Both Initiator and Target" } } } else { $null; } OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "InService" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } Default { $_status += "Unknown" } } } $_status; HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } Default { "Unknown" } } LinkTechnology if ( $this.psBase.CimInstanceProperties["LinkTechnology"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["LinkTechnology"].Value) { 0 { "Unknown" } 1 { "Other" } 2 { "Ethernet" } 3 { "IB" } 4 { "FC" } 5 { "FDDI" } 6 { "ATM" } 7 { "Token Ring" } 8 { "Frame Relay" } 9 { "Infrared" } 10 { "BlueTooth" } 11 { "Wireless LAN" } Default { "Unknown" } } } else { $null } PortType if ( $this.psBase.CimInstanceProperties["PortType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["PortType"].Value) { 0 { "Unknown" } 1 { "Other" } 10 { "N" } 11 { "NL" } 12 { "F/NL" } 13 { "Nx" } 14 { "E" } 15 { "F" } 16 { "FL" } 17 { "B" } 18 { "G" } 50 {"10BaseT" } 51 { "10-100BaseT" } 52 { "100BaseT" } 53 { "1000BaseT" } 54 { "2500BaseT" } 55 { "10GBaseT" } 56 { "10GBase-CX4" } 94 { "SAS" } 100 { "100Base-FX" } 101 { "100Base-SX" } 102 { "1000Base-SX" } 103 { "1000Base-LX" } 104 { "1000Base-CX" } 105 { "10GBase-SR" } 106 { "10GBase-SW" } 107 { "10GBase-LX4" } 108 { "10GBase-LR" } 109 { "10GBase-LW" } 110 { "10GBase-ER" } 111 { "10GBase-EW" } Default { "Unknown" } } } else { $null } UsageRestriction if ( $this.psBase.CimInstanceProperties["UsageRestriction"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["UsageRestriction"].Value) { 0 { "Unknown" } 2 { "Front-end only" } 3 { "Back-end only" } 4 { "Not restricted" } Default { "Unknown" } } } else { $null } Microsoft.Management.Infrastructure.CimInstance#MSFT_InitiatorId Type if ( $this.psBase.CimInstanceProperties["Type"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["Type"].Value) { 1 { "Other" } 2 { "PortWWN" } 3 { "NodeWWN" } 4 { "Hostname" } 5 { "iSCSI Name" } 6 { "SwitchWWN" } 7 { "SASAddress" } Default { "Unknown" } } } else { $null } HostType if ( $this.psBase.CimInstanceProperties["HostType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["HostType"].Value) { 0 { "Unknown" } 1 { "Other" } 2 { "Standard" } 3 { "Solaris" } 4 { "HPUX" } 5 { "OpenVMS" } 6 { "Tru64" } 7 { "Netware" } 8 { "Sequent" } 9 { "AIX" } 10 { "DGUX" } 11 { "Dynix" } 12 { "Irix" } 13 { "Cisco iSCSI Storage Router" } 14 { "Linux" } 15 { "Microsoft Windows" } 16 { "OS400" } 17 { "TRESPASS" } 18 { "HI-UX" } 19 { "VMware ESXi" } 20 { "Microsoft Windows Server 2008" } 21 { "Microsoft Windows Server 2003" } Default { "Unknown" } } } else { $null; } Microsoft.Management.Infrastructure.CimInstance#MSFT_InitiatorPort PortType switch ($this.psBase.CimInstanceProperties["PortType"].Value) { 1 { "Unknown" } 2 { "Other" } 3 { "Not present" } 5 { "Fabric" } 6 { "Public Loop" } 7 { "FL Port" } 8 { "Fabric Port" } 9 { "Fabric expansion port" } 10 { "Generic Fabric Port" } 20 { "Private Loop" } 21 { "Point to Point" } Default { "Unknown" } } ConnectionType switch ($this.psBase.CimInstanceProperties["ConnectionType"].Value) { 0 { "Other" } 1 { "Fibre Channel" } 2 { "iSCSI" } 3 { "SAS" } Default { "Unknown" } } OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Unknown" } 2 { $_status += "Operational" } 3 { $_status += "User Offline" } 4 { $_status += "Bypassed" } 5 { $_status += "In diagnostics mode" } 6 { $_status += "Link Down" } 7 { $_status += "Port Error" } 8 { $_status += "Loopback" } } } $_status; PortSupportedSpeed switch ($this.psBase.CimInstanceProperties["PortSupportedSpeed"].Value) { 1 { "1 GBit/sec" } 2 { "2 GBit/sec" } 4 { "10 GBit/sec" } 8 { "4 GBit/sec" } Default { "Unknown" } } PortSpeed switch ($this.psBase.CimInstanceProperties["PortSpeed"].Value) { 1 { "1 GBit/sec" } 2 { "2 GBit/sec" } 4 { "10 GBit/sec" } 8 { "4 GBit/sec" } Default { "Unknown" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_MaskingSet HostType if ( $this.psBase.CimInstanceProperties["HostType"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ($this.psBase.CimInstanceProperties["HostType"].Value) { 0 { "Unknown" } 1 { "Other" } 2 { "Standard" } 3 { "Solaris" } 4 { "HPUX" } 5 { "OpenVMS" } 6 { "Tru64" } 7 { "Netware" } 8 { "Sequent" } 9 { "AIX" } 10 { "DGUX" } 11 { "Dynix" } 12 { "Irix" } 13 { "Cisco iSCSI Storage Router" } 14 { "Linux" } 15 { "Microsoft Windows" } 16 { "OS400" } 17 { "TRESPASS" } 18 { "HI-UX" } 19 { "VMware ESXi" } 20 { "Microsoft Windows Server 2008" } 21 { "Microsoft Windows Server 2003" } Default { "Unknown" } } } else { $null } Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageSetting NewDiskPolicy switch ($this.psBase.CimInstanceProperties["NewDiskPolicy"].Value) { 0 { "Unknown" } 1 { "OnlineAll" } 2 { "OfflineShared" } 3 { "OfflineAll" } 4 { "OfflineInternal" } Default { "OfflineShared" } } ScrubPolicy switch ($this.psBase.CimInstanceProperties["ScrubPolicy"].Value) { 0 { "Off" } 1 { "IntegrityStreams" } 2 { "All" } Default { "Integrity Streams" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageJob OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "In Service" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } 32772 { $_status += "Failed Media" } 32773 { $_status += "Split" } 32774 { $_status += "Stale Metadata" } 32775 { $_status += "IO Error" } 32776 { $_status += "Unrecognized Metadata" } Default { "Unknown" } } } $_status; JobState switch ( $this.psBase.CimInstanceProperties["JobState"].Value ) { 2 { "New" } 3 { "Starting" } 4 { "Running" } 5 { "Suspended" } 6 { "Shutting Down" } 7 { "Completed" } 8 { "Terminated" } 9 { "Killed" } 10 { "Exception" } 11 { "Service" } 12 { "Query Pending" } Default { "Unknown" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_FileStorageTier PlacementStatus switch ( $this.psBase.CimInstanceProperties["PlacementStatus"].Value ) { 0 { "Unknown" } 1 { "Completely on tier" } 2 { "Partially on tier" } 3 { "Not on tier" } Default { "Unknown" } } State switch ( $this.psBase.CimInstanceProperties["State"].Value ) { 0 { "Unknown" } 1 { "OK" } 2 { "Insufficent Capacity" } 3 { "In Process" } 4 { "Pending" } Default { "Unknown" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageTier MediaType switch ( $this.psBase.CimInstanceProperties["MediaType"].Value ) { 0 { "UnSpecified" } 3 { "HDD" } 4 { "SSD" } Default { "UnSpecified" } } Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageNodeToPhysicalDisk HealthStatus switch ($this.psBase.CimInstanceProperties["HealthStatus"].Value) { 0 { "Healthy" } 1 { "Warning" } 2 { "Unhealthy" } 5 { "Unknown" } Default { "Unknown" } } OperationalStatus $_status = @(); foreach ( $status in $this.psBase.CimInstanceProperties["OperationalStatus"].Value ) { switch ( $status ) { 1 { $_status += "Other" } 2 { $_status += "OK" } 3 { $_status += "Degraded" } 4 { $_status += "Stressed" } 5 { $_status += "Predictive Failure" } 6 { $_status += "Error" } 7 { $_status += "Non-Recoverable Error" } 8 { $_status += "Starting" } 9 { $_status += "Stopping" } 10 { $_status += "Stopped" } 11 { $_status += "In Service" } 12 { $_status += "No Contact" } 13 { $_status += "Lost Communication" } 14 { $_status += "Aborted" } 15 { $_status += "Dormant" } 16 { $_status += "Supporting Entity in Error" } 17 { $_status += "Completed" } 18 { $_status += "Power Mode" } 19 { $_status += "Relocating" } 53252 { $_status += "Failed Media" } 53253 { $_status += "Split" } 53254 { $_status += "Stale Metadata" } 53255 { $_status += "IO Error" } 53256 { $_status += "Unrecognized Metadata" } Default { "Unknown" } } } $_status; LoadBalancePolicy if ( $this.psBase.CimInstanceProperties["LoadBalancePolicy"].Flags.HasFlag([Microsoft.Management.Infrastructure.CimFlags]::NullValue) -eq $false ) { switch ( $this.psBase.CimInstanceProperties["LoadBalancePolicy"].Value ) { 0 { "Unknown" } 1 { "Fail Over" } 2 { "Round Robin" } 3 { "Round Robin with Subset" } 4 { "Least Queue Depth" } 5 { "Weighted Paths" } 6 { "Least Blocks" } 7 { "Vendor Specific" } } } PathState $_state = @(); foreach ( $state in $this.psBase.CimInstanceProperties["PathState"].Value ) { switch ( $state ) { 0 { $_state += "Unavailable" } 1 { $_state += "Active/Unoptimized" } 2 { $_state += "Standby" } 3 { $_state += "Active/Optimized" } 4 { $_state += "Failed" } } } $_state; StorageNodeObjectId $this.psBase.CimInstanceProperties["StorageNode"].Value.ObjectId PhysicalDiskObjectId $this.psBase.CimInstanceProperties["PhysicalDisk"].Value.ObjectId