The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,533 other followers

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):

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>

Note that fsutil does not need –help, -? or -h on the command-line to display help; just omit stuff and you get help:

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

–jeroen

Via: Fsutil behavior

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: