Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
tiredoflogins

Disabling CD ROM Drive

5 posts in this topic

:o I got this script to disable my CD rom drive.

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]"Type"=dword:00000001

"Start"=dword:00000004

"Group"="SCSI CDROM Class"

"ErrorControl"=dword:00000000

"Tag"=dword:00000002

"DependOnGroup"=hex(7):53,43,53,49,20,6d,69,6e,69,70,6f,72,74,00,00

"Autorun"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom\Enum]

"0"="Root\\LEGACY_CDROM\\0000"

"Count"=dword:00000001

"NextInstance"=dword:00000001

How do I enable it?

Help me!

0

Share this post


Link to post
Share on other sites

I believe this is what will enable it back:

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
"Start"=dword:00000002

What had happened was that the service had been set to "disabled". Now, the above will set it to "Automatic" start - i.e., on demand.

Do post back on whether it works or not. :)

0

Share this post


Link to post
Share on other sites

Hi there,

Nopes it hasn't worked. I am not able to see the drive in my explorer.

0

Share this post


Link to post
Share on other sites

You could try to use this nifty utility from Nirsoft:

http://nirsoft.multiservers.com/

To enable/disable service from command line or batch file.

NIRCOMLINE

http://nirsoft.multiservers.com/utils/nircomline.html

service {\\Computer} [action][service name]

Changes the status and the startup type of services and drivers.

The parameters:

{\\Computer}: Optional. Specifies the name of the remote computer. If you omit this parameter, the local computer is used.

[action]: The action you want to do. This parameter may contain one of the following values:

start: Starts the specified service or driver.

stop: Stops the specified service or driver.

pause: Pauses the specified service or driver.

continue: Continues the specified service or driver.

restart: Stops and then starts again the specified service or driver.

auto: Changes the startup type of the specified service or driver to Automatic.

manual: Changes the startup type of the specified service or driver to Manual.

disabled: Changes the startup type of the specified service or driver to Disabled.

boot: (Only for drivers) Changes the startup type of the specified driver to 'Boot'.

system: (Only for drivers) Changes the startup type of the specified driver to 'System'.

[service name]: The name of the service or driver.

Examples:

service start schedule

service \\remote stop schedule

service restart w3svc

service {\\Computer} [action] [service name]

Changes the status and the startup type of services and drivers.

The parameters:

{\\Computer}: Optional. Specifies the name of the remote computer. If you omit this parameter, the local computer is used.

[action]: The action you want to do. This parameter may contain one of the following values:

start: Starts the specified service or driver.

stop: Stops the specified service or driver.

pause: Pauses the specified service or driver.

continue: Continues the specified service or driver.

restart: Stops and then starts again the specified service or driver.

auto: Changes the startup type of the specified service or driver to Automatic.

manual: Changes the startup type of the specified service or driver to Manual.

disabled: Changes the startup type of the specified service or driver to Disabled.

boot: (Only for drivers) Changes the startup type of the specified driver to 'Boot'.

system: (Only for drivers) Changes the startup type of the specified driver to 'System'.

[service name]: The name of the service or driver.

Examples:

service start schedule

service \\remote stop schedule

service restart w3svc

But before that, try interactively with the in built Service Manager or (better) with this other Nirsoft utility:

SERVIWIN

http://nirsoft.multiservers.com/utils/serviwin.html

With which is easier to manage dependencies.

(I suspect that setting the start as automatic does not actualy start the service if there are any stopped depencies or until reboot, so you should try starting the service manually, see if it works, then reboot)

if it doesn't work, check dependecies first, than experiment with the other possible settings, i.e. 0 or 1 for the "Start" key

BOOT_START             0x00000000
SYSTEM_START           0x00000001
AUTO_START             0x00000002
DEMAND_START           0x00000003
DISABLED               0x00000004

jaclaz

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.