tiredoflogins Posted August 19, 2004 Share Posted August 19, 2004 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:00000001How do I enable it?Help me! Link to comment Share on other sites More sharing options...
prathapml Posted August 19, 2004 Share Posted August 19, 2004 I believe this is what will enable it back:REGEDIT4[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]"Start"=dword:00000002What 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. Link to comment Share on other sites More sharing options...
tiredoflogins Posted August 20, 2004 Author Share Posted August 20, 2004 Hi there,Nopes it hasn't worked. I am not able to see the drive in my explorer. Link to comment Share on other sites More sharing options...
jaclaz Posted August 20, 2004 Share Posted August 20, 2004 You could try to use this nifty utility from Nirsoft:http://nirsoft.multiservers.com/To enable/disable service from command line or batch file.NIRCOMLINEhttp://nirsoft.multiservers.com/utils/nircomline.htmlservice {\\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 w3svcservice {\\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 w3svcBut before that, try interactively with the in built Service Manager or (better) with this other Nirsoft utility:SERVIWINhttp://nirsoft.multiservers.com/utils/serviwin.htmlWith 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" keyBOOT_START 0x00000000SYSTEM_START 0x00000001AUTO_START 0x00000002DEMAND_START 0x00000003DISABLED 0x00000004jaclaz Link to comment Share on other sites More sharing options...
Astalavista Posted September 8, 2004 Share Posted September 8, 2004 very nice... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now