How Do I Speed File Access on Windows Servers Using FSUTIL?
- 06/06/2020 8:01 PM
FSUTIL can be invoked from the command line.
On a Windows 2003 Server you can speed file access (esepcially on RAID systems) by disabling last access (where last access stats are generated for each file) and 8.3 (where older DOS compatible 8.3 filenames are generated for every file write) by using these commands:
fsutil behavior set disablelastaccess 1
fsutil behavior set disable8dot3 1
The disablelastaccess CAN POTENTIALLY cause issues with some backup programs... so be sure to test this if you use traditional backup programs.
COMPLETE FSUTIL PRIMER
Create a hardlink
FSUTIL hardlink create Eg : fsutil hardlink create c:\foo.txt c:\bar.txt
Create a new file of a specific size
FSUTIL file createnew Eg : fsutil file createnew C:\testfile.txt 1000
Set the short name for a file
FSUTIL file setshortname Eg : fsutil file setshortname C:\testfile.txt testfile
Set the valid data length for a file
FSUTIL file setvaliddata Eg : fsutil file setvaliddata C:\testfile.txt 4096
Set the zero data for a file
FSUTIL file setzerodata offset= length= offset : File offset, the start of the range to set to zeroes length : Byte length of the zeroed range Eg : fsutil file setzerodata offset=100 length=150 C:\Temp\sample.txt
List all drives (including mapped and Subst drives)
FSUTIL fsinfo drives
Query drive type for a drive
FSUTIL fsinfo drivetype Eg : fsutil fsinfo drivetype C: ListLocalDrives.cmd - List all drives on the local computer
Query volume information
FSUTIL fsinfo volumeinfo Eg : fsutil fsinfo volumeinfo C:\
Query NTFS specific volume information
FSUTIL fsinfo ntfsinfo Eg : fsutil fsinfo ntfsinfo C:
Query file system statistics
FSUTIL fsinfo statistics Eg : fsutil fsinfo statistics C:
QUOTA Management
FSUTIL quota {query|disable|track|enforce } C: FSUTIL quota violations FSUTIL quota modify Eg : fsutil quota modify c: 3000 5000 domain\user
Find a file by user name (if Disk Quotas are enabled)
FSUTIL file findbysid Eg : fsutil file findbysid scottb C:\users
File system options:
FSUTIL behavior query option FSUTIL behavior set option FSUTIL dirty query FSUTIL dirty set Where option is one of: disable8dot3 allowextchar disablelastaccess quotanotify mftzone Eg : FSUTIL behavior query disable8dot3 1 FSUTIL dirty query C:
Query a reparse point
FSUTIL reparsepoint query Eg : fsutil reparsepoint query C:\Server
Delete a reparse point
FSUTIL reparsepoint delete Eg : fsutil reparsepoint delete C:\Server
Edit an object identifier
FSUTIL objectid {query | set | delete | create}
Set sparse file properties
FSUTIL sparse queryflag FSUTIL sparse setflag FSUTIL sparse queryrange FSUTIL sparse setrange Eg : fsutil sparse queryflag "C:\My Test.txt"
Query the allocated ranges for a file
FSUTIL file queryallocranges offset= length= offset : File Offset, the start of the range to query length : Size, in bytes, of the range Eg : fsutil file queryallocranges offset=1024 length=64 C:\Temp\sample.txt
To run FSUTIL, you must be logged on as an administrator or a member of the Administrators group.