+ Post New Thread
Results 1 to 9 of 9
Windows Thread, DVD or CD Tray Lock from Script or on login in Technical; Hi Guys i have some PCs that have DVD Drives in i wan't to be able to lock them closed ...
  1. #1
    k-strider's Avatar
    Join Date
    Oct 2006
    Location
    Gloucester
    Posts
    358
    Thank Post
    7
    Thanked 40 Times in 30 Posts
    Rep Power
    24

    DVD or CD Tray Lock from Script or on login

    Hi Guys

    i have some PCs that have DVD Drives in i wan't to be able to lock them closed so the eject button doesn't work. Most of the time they won't be used but occasionally for mastering DVDs they will be needed.

    I found a couple of Apps that will lock the Drive so i know its possible, however they are icon and tray based and don't have any command line switches and need doing post login so they don't serve my purpose, other than proof of concept. for example CDLocker.exe by sosftbureau.com

    i've had a look around and can't find anything... surely someone has written a EXE or Script for this purpose. that i could use as a login script.

    Gordon.

  2. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    One solution could be to remove the DVD drives completely and mount an ISO as a virtual drive, so it can be used as and when needed.

  3. #3
    k-strider's Avatar
    Join Date
    Oct 2006
    Location
    Gloucester
    Posts
    358
    Thank Post
    7
    Thanked 40 Times in 30 Posts
    Rep Power
    24
    I was thinking along a similar line... the solution that i have that i dont want to implament is removing the power from the back of the units.. they are needed occasionally to make DVDs from Video Software... rather than as a reading/input drvie.... so i dont need virtual Drives

  4. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    You could create a special user who can see/use the DVD drive. Other users have the drive hidden, so even if they eject the drive and insert a disc it won't work. It would be straight forward to do this using GPOs.

  5. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,583
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    take out all optical drives and fit blanking plates and either buy external drive caddies or get as many as requires external optical drives and tally up how many you have and do a count when handing them back in with a signing sheet to ensure

    A - they come back in reasonable condition
    B - they all come back
    C - which teacher handed them out so there can be someone responsable should any of the above go wrong and the aformentioned teacher can then have a reasonable idea of which class it was or which students.

  6. #6

    Sylv3r's Avatar
    Join Date
    Jul 2005
    Location
    Co. Durham
    Posts
    3,268
    Thank Post
    380
    Thanked 388 Times in 343 Posts
    Rep Power
    150
    I would think if there was any software available to lock the drives you would still be able to push in a paper clip into the tiny hole and the tray would probably still eject - so not sure if the software solution would work.

  7. Thanks to Sylv3r from:

    mac_shinobi (7th September 2009)

  8. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,583
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377
    Quote Originally Posted by Sylv3r View Post
    I would think if there was any software available to lock the drives you would still be able to push in a paper clip into the tiny hole and the tray would probably still eject - so not sure if the software solution would work.
    I should of mentioned that in my above post and yes that is correct as we had this issue and students would still use a paper clip and force all sorts of rubbish into the optical drives ranging from 1 and 2 pence coins all the way to short stubby pencils , paper, sweet wrappers and anything else in between and half of the damage done actually rendered the optical drive useless in some way shape or form.

  9. #8

    Join Date
    Oct 2009
    Posts
    4
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by k-strider View Post
    I found a couple of Apps that will lock the Drive so i know its possible, however they are icon and tray based and don't have any command line switches and need doing post login so they don't serve my purpose, other than proof of concept. for example CDLocker.exe by sosftbureau.com
    We've often toyed with the idea of locking the drives through software but always been put off by the available tools. But paper-clips aside, it's still worth doing. Well, having spent a good hundred quid replacing drives in recent weeks I finally plonked myself in front of Visual Studio this morning and have a command-line solution for this now - thought I'd share it as I recall coming to this thread searching for answers last week.

    App, msi and source are here:
    (edit: nope, post below...)

    It's simple to run, just 'cdtray.exe lock d' or 'cdtray.exe unlock d' - where D is your optical drive letter. It'll execute silently unless you pass it daft arguments.

    Not sure yet if we're going to run it as a startup item for students, or lock it first on startup and unlock it for staff at login...

    Amazing what you can accomplish with Google and a vague recollection of picking up a book on Amiga C ten years ago!
    Last edited by Goatboy; 31st May 2010 at 02:34 PM.

  10. #9

    Join Date
    Oct 2009
    Posts
    4
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Make that here: Download



SHARE:
+ Post New Thread

Similar Threads

  1. Script to remotely lock a computer screen
    By mac_shinobi in forum Scripts
    Replies: 15
    Last Post: 22nd August 2012, 01:50 AM
  2. Auto Login - Lock Keyboard and Mouse
    By Zoom7000 in forum Windows
    Replies: 7
    Last Post: 26th August 2009, 01:57 PM
  3. Need script to associate WMP to open DVD's
    By sidewinder in forum Windows
    Replies: 5
    Last Post: 8th May 2009, 01:24 AM
  4. No Tray dvd players
    By linuxgirlie in forum Hardware
    Replies: 12
    Last Post: 8th April 2007, 12:51 PM
  5. Close Tray and Eject Tray in Right context menu ?
    By mac_shinobi in forum How do you do....it?
    Replies: 2
    Last Post: 24th January 2006, 01:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •