How to Find Windows Hidden Files And Export File Properties Using PowerShell

1. Are You Troubled by These Windows File Management Problems?

When using a Windows computer, have you ever encountered these frustrating situations: you know there are hidden files in the system, but you can’t find them no matter how many times you search in File Explorer; you want to view detailed information such as short file names and encryption attributes, but the native system functions are completely ineffective; when you need to batch export file properties, you can only copy and paste manually, which is time-consuming and laborious.

When many people encounter these problems, their first reaction is to download and install third-party file management software. However, these software not only take up disk space, but also may have the risks of bundled plug-ins and privacy leaks. In fact, the Windows system itself comes with a powerful solution. Combined with simple PowerShell scripts, you can easily overcome these core file management problems without installing any additional software, and even beginners can get started quickly.

2. Two Steps to Show Windows Hidden Files and Protected System Files

If you want to view hidden files and protected system files, you don’t need complicated settings. With simple operations in File Explorer, you can make these “invisible” files visible. The specific steps are as follows:

2.1 Show Normal Hidden Files

  1. Open File Explorer, click “This PC” in the left navigation bar, and then select the disk you want to view (take the C drive as an example).
  2. Click the View tab in the top menu bar, and check the Hidden items checkbox in the “Show/hide” area.
  3. After checking, the originally hidden folders will be displayed, and their icons will be translucent to distinguish them from ordinary folders.

2.2 Show Protected System Files

  1. Click the three dots (…) after the View tab of File Explorer, click the Options button to open the “Folder Options” window.
  2. Switch to the View tab in the Folder Options window, find the “Advanced settings” list, and uncheck the Hide protected operating system files (Recommended) checkbox.
  3. In the pop-up warning dialog box, click “Yes” to confirm the operation, then click “Apply” and “OK” to save the settings.
  4. At this point, the system-protected files in the C drive, such as Recycle.Bin, Documents and Settings, System Volume Information, etc., will all be displayed.

3. Amazing Operation! Export All File Properties with One Click Using PowerShell

Showing hidden files is just the first step. If you need to batch obtain detailed information such as file name, size, attributes, and last modification time, and save it to a text file, PowerShell script is the most efficient tool. It can save you the trouble of manual sorting and realize one-click export. The specific steps are as follows:

3.1 Open Windows PowerShell

  1. Press the Win+R key combination to open the “Run” dialog box, enter “powershell”, and press Enter to start the PowerShell program.

3.2 Execute the File Property Query Command

  1. In the PowerShell window, enter the command: `Get-ChildItem -Path C:\ -Force | Select-Object Name, Length, Attributes, LastWriteTime | Format-Table -AutoSize`
  2. Command explanation: `Get-ChildItem -Path C:\ -Force` means to get all files and folders under the C drive; `Select-Object` is used to filter the required attributes, including Name, Length, Attributes, and LastWriteTime; `Format-Table` displays the query results in a neat table format.
  3. Press Enter, and the detailed information of all files and folders under the C drive, including hidden files and system-protected files, will be displayed in the window immediately.

3.3 Export Query Results to a Text File

  1. Add an export command at the end of the above command, the complete command is: `Get-ChildItem -Path C:\ -Force | Select-Object Name, Length, Attributes, LastWriteTime | Format-Table -AutoSize > all.txt`
  2. Press Enter to execute the command, and the system will generate a text file named “all.txt” in the current directory.
  3. Open the text file, and you can see all the exported file attribute information for subsequent viewing and use.

4. Summary: Native Tools Are the Best Solution for Windows File Management

From the above operations, it is not difficult to find that the File Explorer and PowerShell tools built into Windows can fully meet the needs of daily file management. Whether it is showing hidden files, viewing system-protected files, or batch exporting file properties, there is no need to rely on third-party software.

This method is not only safe and reliable, but also can save disk space and improve operation efficiency. For computer beginners, these operations are simple and easy to understand, and you can get started immediately after reading; for users with a certain foundation, you can also modify the parameters of the PowerShell command according to your own needs to achieve more personalized file management functions.

5. Demo Video

You can watch the following demo video by select the subtitle to your preferred subtitle language.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.