Enabling DisableLastAcces using fsutil
Posted by jpluimers on 2012/09/07
Note: modifying DisableLastAccess using fsutil is only supported on Windows Server 2008 R2 and higher, and on Windows 7 and higher.
The comment says that older versions of Windows (Windows Server 2000 through Windows Server 2008, and Windows XP through Windows Vista) need the registry way to do this.
This is not true, as the fsutil way works for Windows Server 2003.
Both ways require a reboot and require Administrator access.
It works like this (on Windows Server 2003 x86 as an Administrator user):
[sourcecode language=”text”]
C:\Documents and Settings\jeroenp>fsutil behavior query disablelastaccess
disablelastaccess is not currently set
C:\Documents and Settings\jeroenp>fsutil behavior set disablelastaccess 1
C:\Documents and Settings\jeroenp>fsutil behavior query disablelastaccess
disablelastaccess = 1
C:\Documents and Settings\jeroenp>
[/sourcecode]
Note that fsutil does not need –help, -? or -h on the command-line to display help; just omit stuff and you get help:
[sourcecode language=”text”]
C:\Documents and Settings\jeroenp>fsutil
—- Commands Supported —-
behavior Control file system behavior
dirty Manage volume dirty bit
file File specific commands
fsinfo File system information
hardlink Hardlink management
objectid Object ID management
quota Quota management
reparsepoint Reparse point management
sparse Sparse file control
usn USN management
volume Volume management
C:\Documents and Settings\jeroenp>fsutil behavior query
Usage : fsutil behavior query disable8dot3allowextchardisablelastaccessquotanotifymftzonememoryusageC:\Documents and Settings\jeroenp>fsutil behavior set disablelastaccessUsage : fsutil behavior set disable8dot3 1 | 0allowextchar 1 | 0disablelastaccess 1 | 0quotanotify 1 through 4294967295 secondsmftzone 1 through 4memoryusage 1 through 2[/sourcecode]
–jeroen
Via: Fsutil behavior






Leave a Comment