Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Registry key for write-behind caching

Posted on 1997-07-22
2
Medium Priority
?
288 Views
Last Modified: 2013-12-23
What is the registry key to disable write behind caching, and what must it be set to to turn it on.

ie:  I want to disable write behind caching for all PCs on site, but I want to do it in the logon script, and if I know the key, I can write a script to do it.
0
Comment
Question by:Chrism
2 Comments
 
LVL 2

Accepted Solution

by:
dmethvin earned 200 total points
ID: 1547796
I think you're referring to to the check box "Disable Write Behind Caching for All Drives" that's in the Control Panel/System/Performance/FileSystem/Troubleshooting dialog.

To disable write-behind caching, you set the key
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem\DriveWriteBehind to the binary value 0.

However, I'm pretty sure that the system only checks this value on boot-up, before you'll have a chance to change it in a batch file. Your change will only take effect after the next reboot.

Also, if you're looking for absolute safety in disk operations, you should know that virtually all EIDE drives write-cache in their on-disk buffers. If you lose power or have a system failure the bits you thought you wrote may not be there.  SCSI disks generally have configurable write cache, with the default being off.

Finally, if you're doing this because of some bad experiences from Windows 3.1 and Smartdrive, you should know that Win95 is a lot more conservative in the write caching. That is, unless you "Enable Synchronous Buffer Commits" (in same screen as the disable write-back above) which brings back the risky but faster behavior.
0
 
LVL 2

Author Comment

by:Chrism
ID: 1547797
Nah, I have to do it for a certain piece of software that we use on site.

Thanks for the info though.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question