text
stringlengths
0
4.23k
fsutil 8dot3name [scan] [/s] [/l [<log file>] ] [/v] <directorypath>
fsutil 8dot3name [set] { <defaultvalue> | <volumepath> {1|0}}
fsutil 8dot3name [strip] [/t] [/s] [/f] [/l [<log file.] ] [/v] <directorypath>
Parameters
Parameter
Description
query [<volumepath>]
Queries the file system for the state of the 8dot3 short name creation behavior.If a volumepath isn't specified as a parameter, the default 8dot3name creation behavior setting for all volumes is displayed.
scan <directorypath>
Scans the files that are located in the specified directorypath for registry keys that might be impacted if 8dot3 short names were stripped from the file names.
set { <defaultvalue> \| <volumepath>}
Changes the file system behavior for 8dot3 name creation in the following instances:When defaultvalue is specified, the registry key, HKLM\System\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation, is set to the defaultvalue.The DefaultValue can have the following values:0: Enables 8dot3 name creation for all volumes on the system.1: Disables 8dot3 name creation for all volumes on the system.2: Sets 8dot3 name creation on a per volume basis.3: Disables 8dot3 name creation for all volumes except the system volume.When a volumepath is specified, the specified volumes on disk flag 8dot3name properties are set to enable 8dot3 name creation for a specified volume (0) or set to disable 8dot3 name creation on the specified volume (1).You must set the default file system behavior for 8dot3 name creation to the value 2 before you can enable or disable 8dot3 name creation for a specified volume.
strip <directorypath>
Removes the 8dot3 file names for all files that are located in the specified directorypath. The 8dot3 file name is not removed for any files where the directorypath combined with the file name contains more than 260 characters.This command lists, but does not modify the registry keys that point to the files that had 8dot3 file names permanently removed.
<volumepath>
Specifies the drive name followed by a colon or the GUID in the format volume{GUID}.
/f
Specifies that all files that are located in the specified directorypath have the 8dot3 file names removed even if there are registry keys that point to files using the 8dot3 file name. In this case, the operation removes the 8dot3 file names, but does not modify any registry keys that point to the files that are using the 8dot3 file names. Warning: It's recommended that you back up your directory or volume prior to using the /f parameter because it may lead to unexpected application failures, including the inability to uninstall programs.
/l [<log file>]
Specifies a log file where information is written.If the /l parameter isn't specified, all information is written to the default log file: %temp%\8dot3_removal_log@(GMT YYYY-MM-DD HH-MM-SS).log**
/s
Specifies that the operation should be applied to the subdirectories of the specified directorypath.
/t
Specifies that the removal of 8dot3 file names should be run in test mode. All operations except the actual removal of the 8dot3 file names are performed. You can use test mode to discover which registry keys point to files that use the 8dot3 file names.
/v
Specifies that all information that is written to the log file is also displayed on the command-line.
[<volumepath>]
If a volumepath isn't specified as a parameter, the default 8dot3name creation behavior setting for all volumes is displayed.
<directorypath>
<defaultvalue> \| <volumepath>}
The DefaultValue can have the following values:0: Enables 8dot3 name creation for all volumes on the system.1: Disables 8dot3 name creation for all volumes on the system.2: Sets 8dot3 name creation on a per volume basis.3: Disables 8dot3 name creation for all volumes except the system volume.When a volumepath is specified, the specified volumes on disk flag 8dot3name properties are set to enable 8dot3 name creation for a specified volume (0) or set to disable 8dot3 name creation on the specified volume (1).You must set the default file system behavior for 8dot3 name creation to the value 2 before you can enable or disable 8dot3 name creation for a specified volume.
You must set the default file system behavior for 8dot3 name creation to the value 2 before you can enable or disable 8dot3 name creation for a specified volume.
<directorypath>
This command lists, but does not modify the registry keys that point to the files that had 8dot3 file names permanently removed.
<volumepath>
volume{GUID}
[<log file>]
If the /l parameter isn't specified, all information is written to the default log file: %temp%\8dot3_removal_log@(GMT YYYY-MM-DD HH-MM-SS).log**
%temp%\8dot3_removal_log@(GMT YYYY-MM-DD HH-MM-SS)
Examples
To query for the disable 8dot3 name behavior for a disk volume that is specified with the GUID, {928842df-5a01-11de-a85c-806e6f6e6963}, type:
fsutil 8dot3name query volume{928842df-5a01-11de-a85c-806e6f6e6963}
You can also query the 8dot3 name behavior by using the behavior subcommand.
To remove 8dot3 file names in the D:\MyData directory and all subdirectories, while writing the information to the log file that is specified as mylogfile.log, type:
fsutil 8dot3name strip /l mylogfile.log /s d:\MyData
fsutil behavior
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8
Queries or sets NTFS volume behavior, which includes:
Creating the 8.3 character-length file names.
Extending character use in 8.3 character-length short file names on NTFS volumes.
Updating of the Last Access Time stamp when directories are listed on NTFS volumes.
The frequency with which quota events are written to the system log and to NTFS paged pool and NTFS non-paged pool memory cache levels.
The size of the master file table zone (MFT Zone).
Silent deletion of data when the system encounters corruption on an NTFS volume.
File-delete notification (also known as trim or unmap).
Syntax
fsutil behavior query {allowextchar | bugcheckoncorrupt | disable8dot3 [<volumepath>] | disablecompression | disablecompressionlimit | disableencryption | disablefilemetadataoptimization | disablelastaccess | disablespotcorruptionhandling | disabletxf | disablewriteautotiering | encryptpagingfile | mftzone | memoryusage | quotanotify | symlinkevaluation | disabledeletenotify}
fsutil behavior set {allowextchar {1|0} | bugcheckoncorrupt {1|0} | disable8dot3 [ <value> | [<volumepath> {1|0}] ] | disablecompression {1|0} | disablecompressionlimit {1|0} | disableencryption {1|0} | disablefilemetadataoptimization {1|0} | disablelastaccess {1|0} | disablespotcorruptionhandling {1|0} | disabletxf {1|0} | disablewriteautotiering {1|0} | encryptpagingfile {1|0} | mftzone <Value> | memoryusage <Value> | quotanotify <frequency> | symlinkevaluation <symboliclinktype> | disabledeletenotify {1|0}}
Parameters
Parameter
Description
query
Queries the file system behavior parameters.