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 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