Discussion Locked

Ed Bott's Microsoft Challenge-- 2/3/2000

0 helpful
47 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

1. When you insert a CD into a Windows 2000 machine, it plays automatically. Other Windows versions make it relatively easy to disable this feature, but it?s buried in Windows 2000. Where?s the switch that turns off AutoPlay once and for all?
2. Windows 2000 includes a handy defrag utility. How do you schedule it to perform a defrag session automatically, at regular intervals?

47 replies

by dmiles

OK
1)mmc console-computer management-systems tools-components folder
2)computer management-system tools--system-new taskpad-properties-action

by jsecondino

I haven't got the answer to #1, I'll admit. but as for #2 try the following utility: morphaSYS autodefrag. Which can be found at: http://www.morphasys.com/autodefrag/

A brief description of the program: AutoDeFrag is a launcher for the standard defragmenter built into Windows 2000. The standard defragmenter does not support the ability to be scheduled, and therefore must be manually launched when required, once for each fixed disk in your system.

AutoDeFrag works around this limitation and allows the Windows 2000 Task Scheduler to be used to schedule the defragmenter.

by adamdrobnis

1. From my understanding, the best way to turn off the AutoRun (AutoPlay) feature permanently in Windows 2000 is to edit the registry in the following location: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom

In this location, you will need to set the Autorun value to 0.

In addition, there are two other keys that may affect this functionality:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDriveTypeAutoRun

HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDriveTypeAutoRun

The correct value for these keys should be 0x00000095.

2. Per Microsoft, the "handy defrag utility" is based upon Executive Software's full retail version of "Diskeeper" with limitations. They state it cannot be scheduled. Unfortunately, I do not know a workaround to this limitation, with the exception of writing a VB/C++ program to call this program on a regular basis.

by redd1

1) The common way to disable CD AutoPlay is to:

Double Click My Computer and Select Tools ...Folder Options....then File Types.

Under the Registered files Box Select AudioCD and Choose Advanced. In the Actions box you will see the word play.Select it and choose remove then OK.

2) Will send separate

by redd1

2) The way to scheduled defrag sessions is to go to the MMC and add the defrag Snap-in. and set the number of consoles you wish.

by cagandhi

i don't know the perfact answer on q:-1, hence i m going to answering q:-2.
ans. :-2 Just start w2k shedular & select defrag utility, to run at prefared time & at the end of this wizard, check the check box that says "open advance configuration wizard on clicking finish", hence advance configuration wizards, is open and here u can able to schedule it to perform a defrag session automatically, at regular intervals.

by burtd

Answer Q1 MS knowledge base article Q155217
Change the Autorun value in the following registry key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom

To disable the Autorun feature, change the Autorun value to 0. To enable the Autorun feature, change the Autorun value to 1.

Restart the computer.
Additional Information
There are two other keys that can affect this functionality:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDriveTypeAutoRun = 0x00000095
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDriveTypeAutoRun = 0x00000095
The correct value for each is0x00000095.
Q2 MS Knowledge base article Q231176
runas /user:administrator@domain.company.com "mmc dfrg.msc"
The user is prompted for the administrator password. This command may be useful for an administrator who wants to run a defragmentation on a user's computer without forcing the user to log off.

You can also use the following procedure t

by wehnertb

As from MS Help:

To disable AutoPlay

Double-click My Computer.
On the Tools menu, click Folder Options, and then click the File Types tab.
In Registered file types, click AudioCD, and then click Advanced.
In Actions, click Play, and thenclick Set Default.

Notes

You can temporarily disable AutoPlay by pressing SHIFT while you insert an audio CD.
Repeating steps 1 through 4 enables AutoPlay.
When Play is displayed in bold, AutoPlay is enabled. When Play is not displayed in bold, AutoPlay is disabled.

by jeanette

Using Scheduled Tasks
Using Scheduled Tasks, you can schedule any script, program, or document to run at a time that is most convenient for you. Scheduled Tasks starts each time you start Windows 2000, and runs in the background. Using the Scheduled Task wizard (available by double-clicking Scheduled Tasks in Control Panel, and then double-clicking Add Scheduled Tasks), you can schedule a task to run daily, weekly, or monthly, change the schedule for a task, and customize how a task runs at a scheduled time.

by moondawg

1). It's buried in Start..Programs..Accessories..Entertainment..CD Player. On the CD Player console, click "Options", choose Preferences
and uncheck the box for "Automatically begin playback at startup". This will bring up the CD Player when you insert an audio CD, but it will not AutoPlay.
Alternatively, you can double-click My Computer, choose Tools from the File Menu and choose Folder Options. Choose the "File Types" tab and scroll to "Audio CD" and click "Advanced". In the Edit File Type dialog, remove "play" from the Actions list. This will prevent the CD Player itself from running automatically when you insert an audio CD.
Another alternative is to simply hold the "SHIFT" key while you insert an audio CD. This will temporarily disable AutoPlay.

2). While it's easy to schedule a new task through Control Panel, (..Scheduled Tasks... Add Scheduled Task to run the Wizard and then browse to "dfrg.msc" to run the Defrag Utility), this version of Diskeeper cannot be scheduled to defrag automaticall

by randy_berns

1. Reboot after changing AutoRun from 1 to 0
in key HKLM\System\CurrentControlSet\Services\cdrom.

by jcruson

1. There is no user interface option to enable or disable the Autorun feature. To enable or disable the feature, you must edit the registry. To do so, follow the steps below.
Log onto the PC as the System Administrator.
Change the Autorun value in the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CDRom
To disable the Autorun feature, change the Autorun value to 0. To enable the Autorun feature, change the Autorun value to 1.
Restart the computer.
NOTE: The above method disables the Autorun feature completely. If you want to disable the feature on a per compact disc basis, you can hold down one of the SHIFT keys while inserting the compact disc.

2. Windows 2000 includes a Disk Defragmenter tool.Although any user can gain access to the Disk Defragmenter console, the ability to analyze or defragment a volume requires administrator privileges.

Disk Defragmenter was designed primarily for stand-alone workstations or servers whose users have the ability to log

by youngdave

1) Open CD Player, select options/preferences and edit Playback options, this will disable audio play. Using TweakUI and choosinf the Paranoid tab, you can select to disable audio and/or data play.
2) Add a scheduled task from the Scheduled Task Wizard.

by jesselou

press shift key before loading the cd disk to
temporarily disable the autoload.another work
around but before implementing it backup first your necessary files; highlight HKEY_LOCAL_ MACHINE /System/CurrentControlSet/Services/CDROM. edit autorun; set to 0 (zero)
with regards to defrag utility use third party application to perform defragmentation such as diskkeeper lite.since w2k does not have a feature to schedule defrag you have to manually start the utility if you prefer to use the w2k built in utility it's command line component are dfrgfat.exe and dfrgntfs.exe.

by puzzal

Right-click My Computer and select Properties to open the
System Properties dialog box. On the Device Manager tab,
click the plus sign next to CDROM and select your
CD-ROM drive. Click the Properties button, select the
Settings tab, and deselect Auto Insert Notification. Click
OK, then click Close and restart Windows 98. The next
time you insert a CD in that drive--nothing

by vt100

My Computer, Administrative tools,Computer Management,Storage, Removable Storage, Phisical Location, XXXXX CD-ROM Drive,Menue Item-"Action", Properties, Inventory Method-None.

by dstrahan

Not sure about #1, but here's the answer for #2.

Go to Start, Settings, Control Panel. Double click on Scheduled Tasks. Double click on Add Scheduled Task. On the first Scheuled Task Wizard screen, click Next. On the second, click the Browse button. Go to the \Winnt\System32 folder and highlight dfrg.msc and click Open. Choose how often you want the defrag to run (daily, weekly, etc) and click Next. Choose the Start time and other options and click Next. Enter the password (probably the Administrator's) and confirm it. Click Next. Click Finish and it will be added as a Scheduled Task.

by mrbjh

AutoPlay is turned off from the actual CD-ROM device in the Device Manager and an automatic Defrag can be scheduled from the System Maintenance Scheduler.

by mrbjh

I had the same problem once - it was a prootcol problem. Make sure all your protocols are uniform and check IP addresses and subnets etc...

by syeatman

1. You can disable CD autorun for all users with the following registry tweak HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom and change Autorun 0x1 to 0x0 to disable autorun. To change it for any given user, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and set the value NoDriveTypeAutoRun from 0x95 to 0xff.

2. No can do! unsurprisingly Microsoft has not implemented the full working version of Diskeeper into W2K, and you can not from my experience use any other method of scheduling it (AT, Batch).

by ahermann

Dear Mr. Ed Bott,

Although I couldn't find a straightforward option to disable AutoPlay for CD, setting this through the registry was simple. For the first time I was searching the registry I found the DWORD value named Autorun under the key HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Cdrom. Changing this value from the default 1 to 0 solved the problem after rebooting the machine.

I couldn't succeed however with scheduling defrag. I thougth it would be easy with the built-in task schedule service but the Windows 2000 doesn't support running defrag from command line. Apparently the only way to configure defrag is to run it from the Start menu. I'm eager to learn what others may find.

Yours sincerely

Andras Hermann

by patb

This is located in the systems registry:
HKEY_LOCAL_MACHINE
System\CurrentControlSet\Services\CDROM
Change autorun to 0{Zero}

by computersanjuans

1) Turn off the feature in the CMOS in older OS systems. Win2K it is done by Click Start, point to Settings, click Control Panel, and then double-click System.
On the Device Manager tab, double-click the CD-ROM branch, and then double-click the CD-ROM driver entry.
On the Settings tab, clear the Auto Insert Notification check box.
Click OK or Close until you return to Control Panel. When you are prompted to restart your computer, click Yes.

2)to schedule the defrag program to run automatically you would use the Task Scheduler:
Double-click My Computer, and then double-click Scheduled Tasks.
Double-click Add Scheduled Task, and then click Next.
Click a program (in this case it is defrag) that you want to schedule, and then clickNext.
Click a scheduling option under Perform This Task, click Next, and then click Finish.

This discussion is closed to new replies.