Code:
echo. & PowerShell Get-wmiObject -Class Win32_CDROMDrive ^| Format-List ^
@{L=' Name' ;E={;if([string]::IsNullOrWhiteSpace($_.Name)) {'N/A'} else {$_.Name}}}, ^
@{L=' Description' ;E={;if([string]::IsNullOrWhiteSpace($_.Description)) {'N/A'} else {$_.Description}}}, ^
@{L=' Manufacturer' ;E={;if([string]::IsNullOrWhiteSpace($_.Manufacturer)) {'N/A'} else {$_.Manufacturer.Trim('()')}}}, ^
@{L=' Manufacturer Assigned Revision Level';E={;if([string]::IsNullOrWhiteSpace($_.MfrAssignedRevisionLevel)) {'N/A'} else {$_.MfrAssignedRevisionLevel}}}, ^
@{L=' Media Type' ;E={;if([string]::IsNullOrWhiteSpace($_.MediaType)) {'N/A'} else {$_.MediaType}}}, ^
@{L=' Media Loaded' ;E={;if([string]::IsNullOrWhiteSpace($_.MediaLoaded)) {'N/A'} else {$_.MediaLoaded}}}, ^
@{L=' Number Of Media Supported' ;E={;if([string]::IsNullOrWhiteSpace($_.NumberOfMediaSupported)) {'N/A'} else {$_.NumberOfMediaSupported}}}, ^
@{L=' Max Media Size' ;E={;if([string]::IsNullOrWhiteSpace($_.MaxMediaSize)) {'N/A'} else {$_.MaxMediaSize}}}, ^
@{L=' Needs Cleaning' ;E={;if([string]::IsNullOrWhiteSpace($_.NeedsCleaning)) {'N/A'} else {$_.NeedsCleaning}}}, ^
@{L=' Device ID' ;E={;if([string]::IsNullOrWhiteSpace($_.DeviceID)) {'N/A'} else {$_.DeviceID}}}, ^
@{L=' Path [Relative]' ;E={;if([string]::IsNullOrWhiteSpace($_.__RELPATH)) {'N/A'} else {$_.__RELPATH}}}, ^
@{L=' Serial Number' ;E={;if([string]::IsNullOrWhiteSpace($_.SerialNumber)) {'--^> [NO Serial Number Present]'} else {$_.SerialNumber}}}, ^
@{L=' Revision Level' ;E={;if([string]::IsNullOrWhiteSpace($_.RevisionLevel)) {'N/A'} else {$_.RevisionLevel}}}, ^
@{L=' Install Date' ;E={;if([string]::IsNullOrWhiteSpace($_.InstallDate)) {'--^> [NO Date Present]'} else {$_.InstallDate}}}, ^
@{L=' Drive' ;E={;if([string]::IsNullOrWhiteSpace($_.Drive)) {'N/A'} else {$_.Drive}}}, ^
@{L=' Drive Integrity' ;E={;if([string]::IsNullOrWhiteSpace($_.DriveIntegrity)) {'N/A'} else {$_.DriveIntegrity}}}, ^
@{L=' ID [Drive Letter]' ;E={;if([string]::IsNullOrWhiteSpace($_.Id)) {'N/A'} else {$_.Id}}}, ^
@{L=' Volume Name' ;E={;if([string]::IsNullOrWhiteSpace($_.VolumeName)) {'N/A'} else {$_.VolumeName}}}, ^
@{L=' Volume Serial Number' ;E={;if([string]::IsNullOrWhiteSpace($_.VolumeSerialNumber)) {'--^> [NO Volume Serial Number Present]'} else {$_.VolumeSerialNumber}}}, ^
@{L=' Size' ;E={;if([string]::IsNullOrWhiteSpace($_.Size)) {'N/A'} else {$_.Size}}}, ^
@{L=' Transfer Rate' ;E={;if([string]::IsNullOrWhiteSpace($_.TransferRate)) {'N/A'} else {$_.TransferRate}}}, ^
@{L=' Compression Method' ;E={;if([string]::IsNullOrWhiteSpace($_.CompressionMethod)) {'N/A'} else {$_.CompressionMethod}}}, ^
@{L=' Maximum Component Length' ;E={;if([string]::IsNullOrWhiteSpace($_.MaximumComponentLength)) {'N/A'} else {$_.MaximumComponentLength}}}, ^
@{L=' File System Flags' ;E={;if([string]::IsNullOrWhiteSpace($_.FileSystemFlags)) {'N/A'} else {$_.FileSystemFlags}}}, ^
@{L=' File System Flags Ex' ;E={;if([string]::IsNullOrWhiteSpace($_.FileSystemFlagsEx)) {'N/A'} else {$_.FileSystemFlagsEx}}}, ^
@{L=' Creation Class Name' ;E={;if([string]::IsNullOrWhiteSpace($_.CreationClassName)) {'N/A'} else {$_.CreationClassName}}}, ^
@{L=' System Creation Class Name' ;E={;if([string]::IsNullOrWhiteSpace($_.SystemCreationClassName)) {'N/A'} else {$_.SystemCreationClassName}}}, ^
@{L=' Min Block Size' ;E={;if([string]::IsNullOrWhiteSpace($_.MinBlockSize)) {'N/A'} else {$_.MinBlockSize}}}, ^
@{L=' Max Block Size' ;E={;if([string]::IsNullOrWhiteSpace($_.MaxBlockSize)) {'N/A'} else {$_.MaxBlockSize}}}, ^
@{L=' Default Block Size' ;E={;if([string]::IsNullOrWhiteSpace($_.DefaultBlockSize)) {'N/A'} else {$_.DefaultBlockSize}}}, ^
@{L=' Config Manager User Config' ;E={;if([string]::IsNullOrWhiteSpace($_.ConfigManagerUserConfig)) {'N/A'} else {$_.ConfigManagerUserConfig}}}, ^
@{L=' Config Manager Error Code' ;E={;if([string]::IsNullOrWhiteSpace($_.ConfigManagerErrorCode)) {'N/A'} else {$_.ConfigManagerErrorCode}}}, ^
@{L=' Power Management Supported' ;E={;if([string]::IsNullOrWhiteSpace($_.PowerManagementSupported)) {'N/A'} else {$_.PowerManagementSupported}}}, ^
@{L=' Power Management Capabilities' ;E={;if([string]::IsNullOrWhiteSpace($_.PowerManagementCapabilities)) {'N/A'} else {$_.PowerManagementCapabilities}}}, ^
@{L=' Error Cleared' ;E={;if([string]::IsNullOrWhiteSpace($_.ErrorCleared)) {'N/A'} else {$_.ErrorCleared}}}, ^
@{L=' Error Description' ;E={;if([string]::IsNullOrWhiteSpace($_.ErrorDescription)) {'N/A'} else {$_.ErrorDescription}}}, ^
@{L=' Error Methodology' ;E={;if([string]::IsNullOrWhiteSpace($_.ErrorMethodology)) {'N/A'} else {$_.ErrorMethodology}}}, ^
@{L=' Last Error Code' ;E={;if([string]::IsNullOrWhiteSpace($_.LastErrorCode)) {'N/A'} else {$_.LastErrorCode}}}, ^
@{L=' SCSI Bus' ;E={;if([string]::IsNullOrWhiteSpace($_.SCSIBus)) {'N/A'} else {$_.SCSIBus}}}, ^
@{L=' SCSI Logical Unit' ;E={;if([string]::IsNullOrWhiteSpace($_.SCSILogicalUnit)) {'N/A'} else {$_.SCSILogicalUnit}}}, ^
@{L=' SCSI Port' ;E={;if([string]::IsNullOrWhiteSpace($_.SCSIPort)) {'N/A'} else {$_.SCSIPort}}}, ^
@{L=' SCSI Target ID' ;E={;if([string]::IsNullOrWhiteSpace($_.SCSITargetId)) {'N/A'} else {$_.SCSITargetId}}}, ^
@{L=' Availability' ;E={;if([string]::IsNullOrWhiteSpace($_.Availability)) {'N/A'} else {$_.Availability}}}, ^
@{L=' Capabilities' ;E={;if([string]::IsNullOrWhiteSpace($_.Capabilities)) {'N/A'} else {$_.Capabilities}}}, ^
@{L=' Capability Descriptions' ;E={;if([string]::IsNullOrWhiteSpace($_.CapabilityDescriptions)) {'N/A'} else {$_.CapabilityDescriptions}}}, ^
@{L=' Scope' ;E={;if([string]::IsNullOrWhiteSpace($_.Scope)) {'N/A'} else {$_.Scope}}}, ^
@{L=' Path' ;E={;if([string]::IsNullOrWhiteSpace($_.Path)) {'N/A'} else {$_.Path}}}, ^
@{L=' Options' ;E={;if([string]::IsNullOrWhiteSpace($_.Options)) {'N/A'} else {$_.Options}}}, ^
@{L=' Class Path' ;E={;if([string]::IsNullOrWhiteSpace($_.ClassPath)) {'N/A'} else {$_.ClassPath}}}, ^
@{L=' Properties' ;E={;if([string]::IsNullOrWhiteSpace($_.Properties)) {'N/A'} else {$_.Properties}}}, ^
@{L=' System Properties' ;E={;if([string]::IsNullOrWhiteSpace($_.SystemProperties)) {'N/A'} else {$_.SystemProperties}}}, ^
@{L=' Qualifiers' ;E={;if([string]::IsNullOrWhiteSpace($_.Qualifiers)) {'N/A'} else {$_.Qualifiers}}}, ^
@{L=' Status' ;E={;if([string]::IsNullOrWhiteSpace($_.Status)) {'N/A'} else {$_.Status}}}, ^
@{L=' Status Info' ;E={;if([string]::IsNullOrWhiteSpace($_.StatusInfo)) {'N/A'} else {$_.StatusInfo}}} ^| ^
Out-String -Width 1000 -Stream ^| Where {$_.Trim().Length -gt 0}