DiskTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_Disk 6 40 Number FriendlyName OperationalStatus Right $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; PartitionStyle DiskListView Microsoft.Management.Infrastructure.CimInstance#MSFT_Disk UniqueId Number Path Manufacturer Model SerialNumber $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; AllocatedSize LogicalSectorSize PhysicalSectorSize NumberOfPartitions PartitionStyle IsReadOnly IsSystem IsBoot PartitionTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_Partition DiskNumber 16 11 10 PartitionNumber DriveLetter Offset Right $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; Type VirtualDiskTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_VirtualDisk FriendlyName ResiliencySettingName OperationalStatus HealthStatus IsManualAttach Right $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; PhysicalDiskTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_PhysicalDisk FriendlyName CanPool OperationalStatus HealthStatus Usage Right $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; StoragePoolTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_StoragePool FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly ResiliencySettingTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_ResiliencySetting StoragePoolFriendlyName Name NumberOfDataCopiesDefault PhysicalDiskRedundancyDefault NumberOfColumnsDefault InterleaveDefault StorageEnclosureTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageEnclosure FriendlyName HealthStatus NumberOfSlots $ElementTypesInError = @( ); foreach ( $status in $_.PowerSupplyOperationalStatus ) { if ( ( $status -ne "OK" ) -and ( $status -ne "Not Installed" ) -and ( $status -ne "No Access Allowed" ) -and ( $status -ne "Not Reported" ) ) { $ElementTypesInError = $ElementTypesInError + "PowerSupply"; break; } } foreach ( $status in $_.FanOperationalStatus ) { if ( ( $status -ne "OK" ) -and ( $status -ne "Not Installed" ) -and ( $status -ne "No Access Allowed" ) -and ( $status -ne "Not Reported" ) ) { $ElementTypesInError = $ElementTypesInError + "Fan"; break; } } foreach ( $status in $_.TemperatureSensorOperationalStatus ) { if ( ( $status -ne "OK" ) -and ( $status -ne "Not Installed" ) -and ( $status -ne "No Access Allowed" ) -and ( $status -ne "Not Reported" ) ) { $ElementTypesInError = $ElementTypesInError + "TemperatureSensor"; break; } } foreach ( $status in $_.VoltageSensorOperationalStatus ) { if ( ( $status -ne "OK" ) -and ( $status -ne "Not Installed" ) -and ( $status -ne "No Access Allowed" ) -and ( $status -ne "Not Reported" ) ) { $ElementTypesInError = $ElementTypesInError + "VoltageSensor"; break; } } foreach ( $status in $_.CurrentSensorOperationalStatus ) { if ( ( $status -ne "OK" ) -and ( $status -ne "Not Installed" ) -and ( $status -ne "No Access Allowed" ) -and ( $status -ne "Not Reported" ) ) { $ElementTypesInError = $ElementTypesInError + "CurrentSensor"; break; } } foreach ( $status in $_.IOControllerOperationalStatus ) { if ( ( $status -ne "OK" ) -and ( $status -ne "Not Installed" ) -and ( $status -ne "No Access Allowed" ) -and ( $status -ne "Not Reported" ) ) { $ElementTypesInError = $ElementTypesInError + "IOController"; break; } } return $ElementTypesInError; StorageProviderTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageProvider 7 Type Name Manufacturer StorageProviderListView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageProvider UniqueId Name Manufacturer Version StorageProviderWideView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageProvider Name StorageSubSystemTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageSubSystem FriendlyName HealthStatus OperationalStatus StorageNodeTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageNode Name OperationalStatus VolumeTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_Volume DriveLetter FileSystemLabel FileSystem DriveType HealthStatus Right $size = $_.SizeRemaining; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; Right $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; InitiatorPortTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_InitiatorPort InstanceName NodeAddress PortAddress ConnectionType InitiatorIdTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_InitiatorId InitiatorAddress Type HostType TargetPortTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_TargetPort FriendlyName NodeAddress PortAddress ConnectionType HealthStatus OperationalStatus TargetPortalTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_TargetPortal IPv4Address IPv6Address PortNumber SubnetMask MaskingSetTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_MaskingSet FriendlyName HostType StorageJobTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageJob Name ElapsedTime JobState PercentComplete IsBackgroundTask FileIntegrityTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_FileIntegrity FileName Enabled Enforced FileStorageTierTableView Microsoft.Management.Infrastructure.CimInstance#MSFT_FileStorageTier FilePath DesiredStorageTierName PlacementStatus State StorageNodeToPhysicalDisk Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageNodeToPhysicalDisk StorageNodeObjectId DiskNumber HealthStatus OperationalStatus IsMpioEnabled LoadBalancePolicy PathId PathState StorageNodeObjectId PhysicalDiskObjectId