Форум OlegON > Компьютеры и Программное обеспечение > Операционные системы и программное обеспечение > Windows

Как включить или отключить кеширование дисков из командной строки? : Windows

29.03.2024 10:21


29.08.2017 13:35
OlegON
 
В Windows есть кеширование дисков на запись, вот такая настройка




интересует, каким образом из командной строки ВСЕМ дискам системы можно включить или отключить эту настройку (обе галочки и, конечно, если это поддерживается)?
29.08.2017 13:58
vitamin
 
dskcache [ +p | -p ] [ +w | -w ] [/i | /s | Drive_Specifier ]

Set (+) or clear (-) the disk cache value:
p : Power protected write cache (not supported on all operating system versions)
w : Write cache
Drive selection (default is all drives)
/i : Integrated device electronics (IDE) disks only
/s : Small computer system interface (SCSI) (includes Fiber Channel) disks only
Drive_Specifier : Drive letter, volume name, or physical drive. Use the following formats:
Drive letter in the following format: c:, d:, and others
Volume name in the following format:
\\?\Volume{8fc37c41-bdd3-11d5-b897-806d6172696f}\
Physical drive: PhysicalDrive0, PhysicalDrive1, and others
If no options are used, current settings for all fixed disks will be displayed.

Notes

Use the w switch to turn on and turn off write caching to improve disk performance.
Use the p switch to turn on and turn off the
Power Protected write cache option.

29.08.2017 14:20
OlegON
 
Эхх, а без этой утилитки никак? В смысле, чтобы не качать ничего откуда-то...
30.08.2017 10:56
vitamin
 
Даже штатный powershell такого не умеет.
Часовой пояс GMT +3, время: 10:21.

Форум на базе vBulletin®
Copyright © Jelsoft Enterprises Ltd.
В случае заимствования информации гипертекстовая индексируемая ссылка на Форум обязательна.