This question already has an answer here:
I am running Windows 7 64 bit on Lenovo W510, I wish to poweroff the CD drive. The power manager sometimes switches off the power when I am running on batteries. Is there a way I can do that myself.
EDIT: The reason I wish to poweroff the CD drive as it is a faulty one and keeps on ejecting the bay every 5 - 10 mins, even when there is no CD inserted. This is distracting and I can't replace it as its an office laptop.