Fsutil dirty


Applies To: Windows Server 2008 R2,Windows Server 2008,Windows Server 2003,Windows Vista,Windows Server 2000,Windows 7,Windows Server 2003 R2

Queries or sets a volume's dirty bit. When a volume's dirty bit is set, autochk automatically checks the volume for errors the next time the computer is restarted.

For examples of how to use this command, see Examples.

Syntax


Copy Code

fsutil dirty {query | set} <VolumePath>

Parameters

Parameter

Description

query

Queries the specified volume's dirty bit.

set

Sets the specified volume's dirty bit.

<VolumePath>

Specifies the drive name followed by a colon or GUID in the following format: Volume{GUID}.

Remarks

Examples

To query the dirty bit on drive C, type:


Copy Code

fsutil dirty query c:

To set the dirty bit on drive C, type:


Copy Code

fsutil dirty set C:

Additional references

Command-Line Syntax Key

Fsutil