The Fsutil objectid command in Windows

Applies to : Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012. Windows 10, Windows 8.1, Windows 8, Windows Server 2008 R2, Windows 7.

The Fsutil objectid command manages the Object Identifier (OID), the internal objects used by Distributed Link Tracking (DLT) Client service and File Replication Service (FRS) to track other objects such as files, directories and link. The Object identifier is invisible to most programs and is never modified.

Careful:

Do not delete, set or modify the Object identifier. Deleting or modifying an Object identifier may result in data loss in parts of the file, the entire file or all drives containing data. In addition, you can affect both Distributed Link Tracking (DLT) Client service and File Replication Service (FRS).

For an example of how to use this command, please see the example below.

Syntax of Fsutil objectid command

 fsutil objectid [create] fsutil objectid [delete] fsutil objectid [query] fsutil objectid [set] 

Parameters

ParameterDescriptioncreate Create an object identifier if the specified file is not available. If the file already has an object identifier, this command is equivalent to a query. delete Delete an object identifier. query Query an object identifier. set Set an object identifier. Place a 16-byte hexadecimal identifier for the file, guaranteed to be unique within a drive. Object identifier is used by Distributed Link Tracking (DLT) Client service and File Replication Service (FRS) to identify the file. Indicates the drive to which the file is located, when you first receive an object identifier. This value is a 16-byte hexadecimal identifier used by DLT Client Service. Indicates the original object identifier of the file (ObjectID may change when the file is moved). This value is a 16-byte hexadecimal identifier used by DLT Client Service. Hexadecimal domain identifier 16 bytes. This value is currently not used and must be set to all zeros. Specify the full path to the file including the file name and extension, for example C: documentsfilename.txt.

Note

Any file that has an object identifier also has a birth volume identifier, a birth object identifier, and domain identifier. When you move a file, the object identifier can change, but the birth volume and the birth object identifier remain the same. This behavior allows the Windows operating system to always find a file, no matter where it has been moved.

For example

To create an object identifier, enter:

 fsutil objectid create c:tempsample.txt 

To delete an object identifier, enter:

 fsutil objectid delete c:tempsample.txt 

To query an object identifier, enter:

 fsutil objectid query c:tempsample.txt 

To set an object identifier, enter:

 fsutil objectid set 40dff02fc9b4d4118f120090273fa9fc f86ad6865fe8d21183910008c709d19e 40dff02fc9b4d4118f120090273fa9fc 00000000000000000000000000000000 c:tempsample.txt 

See more:

  1. Fsutil hardlink command in Windows
  2. Fsutil fsinfo command in Windows
  3. The Fsutil file in Windows
4.1 ★ | 14 Vote

May be interested

  • Fsutil hardlink command in WindowsFsutil hardlink command in Windows
    the fsutil hardlink command creates a hard link between an existing file and a new file.
  • Fsutil resource command in WindowsFsutil resource command in Windows
    the fsutil resource command creates a secondary transactional resource manager, starts or stops transactional resource manager, or displays information about transactional resource manager.
  • ObjectId in MongoDBObjectId in MongoDB
    you have seen the use of mongodb objectid in previous chapters. in this chapter, we will understand the structure of objectid.
  • Sub-commands in nslookup Windows command (Part 2)Sub-commands in nslookup Windows command (Part 2)
    nslookup set all command, nslookup set class, nslookup set d2, alias ​​nslookup set debug, nslookup set domain, nslookup set port, and nslookup set querytype in windows
  • Sub-commands in the nslookup Windows command (Part 1)Sub-commands in the nslookup Windows command (Part 1)
    nslookup command exit, finger nslookup, nslookup help, nslookup ls, nslookup lserver, nslookup root, commandlooklook server, nslookup set in windows
  • Sub-commands in nslookup Windows command (Part 3)Sub-commands in nslookup Windows command (Part 3)
    nslookup set recurse, nslookup set retry, nslookup set root, nslookup set search, nslookup set srchlist, nslookup set timeout, nslookup set type, nslookup set vc, and nslookup view in windows
  • Command at in WindowsCommand at in Windows
    the at command schedules commands and programs to run on a computer at a specified time with a specific date. you can only use the command at when schedule service is running.
  • Set command in WindowsSet command in Windows
    the set command helps show, set or remove cmd.exe environment variables.
  • Del command in WindowsDel command in Windows
    the del command deletes one or more files. this command is the same as the eraser command.
  • 10 useful commands in Windows you should know10 useful commands in Windows you should know
    command prompt is used to execute batch files, perform tasks quickly, help you troubleshoot and solve some windows problems when the system crashes. however, not all commands in windows are useful and must be done regularly. with the 10 command lines in the following article it is very useful even if you are not an administrator.