How to get a list of non read only files in Windows?



For IT administrators seeking to obtain a list of non-read-only files in Windows, the process is relatively straightforward. The easiest way to do this is to use the Command Prompt.

In order to access the Command Prompt in Windows, open the Start menu and type “cmd” into the search bar. This will bring up the Command Prompt application. Once open, type the following command and hit enter:

DIR /A:-R

This command will produce a list of all non-read-only files in the current directory. To search a specific directory, replace “.” with the directory you would like to search. For example, if you wanted to search the “My Documents” folder, you would type:

DIR /A:-R \C:\\Users\\[Your Username]\\My Documents\

This command will produce a list of all non-read-only files in the “My Documents” folder.

Another option for IT administrators is to use the Windows PowerShell to create a list of non-read-only files. To open the Windows PowerShell, open the Start menu and type “PowerShell” into the search bar. Once open, type the following command and hit enter:

Get-ChildItem -Path . -Attributes !ReadOnly -Recurse

This command will produce a list of all non-read-only files in the current directory. To search a specific directory, replace “.” with the directory you would like to search. For example, if you wanted to search the “My Documents” folder, you would type:

Get-ChildItem -Path \C:\\Users\\[Your Username]\\My Documents\ -Attributes !ReadOnly -Recurse

This command will produce a list of all non-read-only files in the “My Documents” folder.

Finally, IT administrators can use the Windows File Explorer to create a list of non-read-only files. To do this, open the File Explorer and navigate to the directory you would like to search. Once there, click the “View” tab in the top menu bar, then click the “Details” option in the ribbon below.

This will open a details view of the directory, which displays the attributes of each file contained within the folder. To filter the list to show only non-read-only files, click on the “Attributes” column header. This will sort the list so that all non-read-only files are at the top.

By using the Command Prompt, Windows PowerShell, or Windows File Explorer, IT administrators can easily obtain a list of non-read-only files in Windows. This list can be used for a variety of purposes, including backing up important data, identifying vulnerable files, or troubleshooting permissions issues.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo