Solved

Registry key for write-behind caching

Posted on 1997-07-22
2
268 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 50 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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