By David Wiseman (Administrator)Created 20 Feb 2008
My Rating:
Vote
Rating:
Not Rated
Views:5080
Downloads:17

List CD-ROM Properties

Language:  KiXtart

Compatibility

Windows XP Yes Windows 2003 Yes
Windows 2000 Yes Windows NT Yes
Vista Unknown Windows 2008 Unknown
Description

Returns information about all the CD-ROM drives installed on a computer.

Code

Line Numbers: On  Off      Plain Text
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_CDROMDrive")
For Each $objItem in $colItems
    ? "Availability:" + $objItem.Availability
    For Each $x in $objItem.Capabilities
        ? "Capabilities:" + $x
    Next
    For Each $x in $objItem.CapabilityDescriptions
        ? "Capability Descriptions:" + $x
    Next
    ? "Caption:" + $objItem.Caption
    ? "Compression Method:" + $objItem.CompressionMethod
    ? "Config Manager Error Code:" + $objItem.ConfigManagerErrorCode
    ? "Config Manager User Config:" + $objItem.ConfigManagerUserConfig
    ? "Creation Class Name:" + $objItem.CreationClassName
    ? "Default Block Size:" + $objItem.DefaultBlockSize
    ? "Description:" + $objItem.Description
    ? "Device ID:" + $objItem.DeviceID
    ? "Drive:" + $objItem.Drive
    ? "Drive Integrity:" + $objItem.DriveIntegrity
    ? "Error Cleared:" + $objItem.ErrorCleared
    ? "Error Description:" + $objItem.ErrorDescription
    ? "Error Methodology:" + $objItem.ErrorMethodology
    ? "File System Flags:" + $objItem.FileSystemFlags
    ? "File System Flags Ex:" + $objItem.FileSystemFlagsEx
    ? "Id:" + $objItem.Id
    ? "Install Date:" + $objItem.InstallDate
    ? "Last Error Code:" + $objItem.LastErrorCode
    ? "Manufacturer:" + $objItem.Manufacturer
    ? "Max Block Size:" + $objItem.MaxBlockSize
    ? "Maximum Component Length:" + $objItem.MaximumComponentLength
    ? "Max Media Size:" + $objItem.MaxMediaSize
    ? "Media Loaded:" + $objItem.MediaLoaded
    ? "Media Type:" + $objItem.MediaType
    ? "Mfr Assigned Revision Level:" + $objItem.MfrAssignedRevisionLevel
    ? "Min Block Size:" + $objItem.MinBlockSize
    ? "Name:" + $objItem.Name
    ? "Needs Cleaning:" + $objItem.NeedsCleaning
    ? "Number Of Media Supported:" + $objItem.NumberOfMediaSupported
    ? "PNP Device ID:" + $objItem.PNPDeviceID
    For Each $x in $objItem.PowerManagementCapabilities
        ? "Power Management Capabilities:" + $x
    Next
    ? "Power Management Supported:" + $objItem.PowerManagementSupported
    ? "Revision Level:" + $objItem.RevisionLevel
    ? "SCSI Bus:" + $objItem.SCSIBus
    ? "SCSI Logical Unit:" + $objItem.SCSILogicalUnit
    ? "SCSI Port:" + $objItem.SCSIPort
    ? "SCSI Target Id:" + $objItem.SCSITargetId
    ? "Size:" + $objItem.Size
    ? "Status:" + $objItem.Status
    ? "Status Info:" + $objItem.StatusInfo
    ? "System Creation Class Name:" + $objItem.SystemCreationClassName
    ? "System Name:" + $objItem.SystemName
    ? "Transfer Rate:" + $objItem.TransferRate
    ? "Volume Name:" + $objItem.VolumeName
    ? "Volume Serial Number:" + $objItem.VolumeSerialNumber
Next

 


Got a useful script? Click here to upload!


 

  Post Comment
Order By:  
User Comments
      
MartaSmith
Posted On: 10/24/2019 12:57:42 PM

List CD-ROM Properties has been made in the KiXtart language and it is usually very useful in multiple ways. I write my lab report with the assistance of online writers and they are good in. By the use of this wonderful software, one can retrieves all his files present in the CD-ROM.

morganalice7
Posted On: 12/2/2019 9:07:37 AM

- First, make sure that your PC is completely powered down there should be no process run on the backend. - Remove the drive slot cover from the CPU. - Set the IDE drive mode. - Attach internal audio cable. - in the end, it should the AC cord back into the power supply. as i am a technician in the cipd assignment writing help in Ireland, service provider company so i know all the knowledge,. because this is my daily bases work.