This step by step guide will show you how you can find the File & Folder Ownership information using Command Prompt. It is possible to check the ownership of a single directory, all sub-directories, and files with the help of this guide. For your information, you can use this trick on almost any Windows version.
Find File & Folder Ownership information using CMD
To find the File & Folder Ownership information using Command Prompt, follow these steps:
- Open Command Prompt on your computer
- Navigate to the desired folder
- Use DIR command switch
- Find the ownership information
To get started, you need to open the Command Prompt first. There are several methods to open the Command Prompt window on your Windows computer. The simplest way is to search for it in the Taskbar search box or press Win+R buttons together to open the Run box, type cmd in it and hit Enter.
After opening the Command Prompt, you need to use the DIR command switch. Next, you need to navigate to the folder where the target file or folder is located.
Say, for example, you have a folder on your Desktop, and it is named as TWC. To navigate to this folder, you need to enter this command-
Now, if you want to check the ownership details of the TWC folder only, enter this command-
dir /q /ad
If you want to check the ownership details of all files included in the TWC folder, you have to enter this command-
You will some columns as shown in the following image-
The fourth column contains the owner’s name.
As all the files are under one user account or owner, it is showing the same name. If you have multiple files and owners, you can find the difference in the same column.
This command also shows the number of files, folders or directories, and the respective size so that you can perform the next task according to your requirements.
- Tags: CMD