My organization has more than 600 PCs. Until recently, about 20 percent of those PCs were shared machines. Often, the shared machines had been placed in departments so that employees could use the machines' CD-RW drives, which had been installed for that purpose. However, we have since upgraded the employees' PCs with better hardware, including CD-RW drives. So, employees rarely used the shared machines.
We recently decided to remove the unused shared machines to increase resource utilization and tighten security. But before we could remove the shared PCs set up for writing CD-ROMs and reassign their hardware, we had to determine which shared PCs fell into this category. (Some shared PCs exist for other purposes and those PCs needed to remain.)Thus, I wrote a script, cdromtype.vbs, to check whether each shared machine's CD-ROM drive—including any external USB CD-ROM drive—was read-only or read/write.
I wrote cdromtype.vbs to run on Windows XP and later. Before running this script, you need to create a text file that specifies the PCs to check. Put each machine's name on a separate line and save this input file in the same directory as the script. . . .

