How to list encrypted files in Windows 7?

42

13

I somehow encrypted some files without meaning to, and because of it I can't backup my user folder to Mozy. Is there a way to remove the encryption from all the files or at least find out which one are encrypted?

I'm runnin windows 7 ultimate 64bits

holiveira

Posted 2009-10-22T14:54:58.733

Reputation: 1 171

Answers

48

This may be an older question; but I recently had the same need.

My goal was to be comprehensive (search all files) and not require additional software, so it uses the command prompt and any text editor.

Here is what I found as a workable solution:

  • open a cmd prompt
  • Enter the command: cipher /s:c:\ > encryption.txt
  • Open the file "encryption.txt"
    • To find encrypted folders, search for "will be encrypted"
    • To find encrypted files, search for "E" at the beginning of a line

Without parameters, Cipher lists state of the current directory and all files in it. The /s parameter tells it to recurse, and c:\ gives it the starting point. From there, "> ..." just redirects the output.

Cipher's output for encrypted files and folders look like this:

 Listing c:\Dev\Encrypted\
 New files added to this directory will be encrypted.

E Default.aspx
E Default.aspx.cs
E Default.aspx.designer.cs

Cipher's output for normal files and folders look like this:

 Listing c:\Dev\Plaintext\
 New files added to this directory will not be encrypted.

U Default.aspx
U Default.aspx.cs
U Default.aspx.designer.cs

Hope that helps.

Robert Altman

Posted 2009-10-22T14:54:58.733

Reputation: 729

1After you ran cipher /s:c:\ > encryption.txt the first time, you can run it again and search through other disk volumes, like D, E and F. Just replace the drive letter with whatever additional drive letters you have, issuing the command each time. Instead of overwriting the content of the TXT file, you can append it, like so: cipher /s:d:\ >> encryption.txt Then you can open it in Notepad++ (or other editor with regex) and find lines beginning with E by using the basic pattern ^E. – Samir – 2014-11-02T00:22:53.200

+1 great answer - easily repeatable (CLI), no need to download any 3rd party apps and a persistent, searchable output – AdamRalph – 2011-03-13T17:05:24.383

1Just tried this on Windows XP Pro, worked a treat, thanks. I used cipher /s:c:\ | find "E " not perfect, but worked for my use. – Christopher Galpin – 2011-11-09T02:21:06.117

13You can use cipher /u /n to list all encrypted files, on all drives. – mivk – 2013-01-18T14:50:07.463

3Based on trying @ChristopherGalpin 's version of this answer (thanks!), I can suggest this one: cipher /S:. | findstr /b /c:"E" /c:" " > encryptedFiles.txt as slightly more accurate - it won't catch unencrypted files with names like E Marketing strategy, I wanted to see what directory they were in also - to make for easy removal - so it also includes the directory names - however it will include directories without encrypted files, so there is a little cruft still in the output. – Chris O'Kelly – 2013-03-28T06:08:28.667

17

cipher /u /n /h will find and list all encrypted files on your hard drives (as mivk commented on the other answer) without need for any additional filtering (that could go wrong). Credits for this also go to this tutorial where I found this answer.

Note: If there are no encrypted files on the system (any disk), the command returns immediatelly with the response:

The system cannot find the file specified.

This is not an error. It means there are no encrypted files. It seems in this case this info is cached somehow.

Important note: This does not list all encrypted files! Apparently it only lists files belonging to the current user who is running the command.

As for unencrypting the files, Snark has already answered that part. It can also be done by command line, again with the same tool: cipher /D ...

See the help for additional info and other uses: cipher /?

David Balažic

Posted 2009-10-22T14:54:58.733

Reputation: 1 242

13

With Total Commander, you can do a search (ALT+F7) on various attributes of files and folders.

The "encrypted" attribute is one of them.

alt text

Once you have found all encrypted files and folders, select "Feed to listbox". It will put all names in the selected pane (left or right). There, you can select them all, right-click and select Properties. You'll get the Properties window for all the selected files. In the Advanced window, you can easily decrypt them by unchecking the "Encrypt..." checkbox.

alt text

Snark

Posted 2009-10-22T14:54:58.733

Reputation: 30 147

11

You can type: encryptionstatus:encrypted Into the search field in an explorer window.

Taylon5

Posted 2009-10-22T14:54:58.733

Reputation: 119

1Just typing in encryptionstatus: into the search field shows a dropdown, completion menu with the entries "Encrypted" and "Unencrypted" that you can click on. So this is correct syntax, encryptionstatus:encrypted and encryptionstatus:unencrypted and it's built right into the search in Windows (File) Explorer. – Samir – 2014-11-02T13:15:22.527

I can't say if it works for sure on encrypted files. But I don't see why it shouldn't. I have tested this in Windows 8.1 Pro with Update 1. Using encryptionstatus:unencrypted did list pretty much all my files. But encryptionstatus:encrypted is still in progress. Probably because I don't have any encrypted files. Not that I'm aware of anyway. – Samir – 2014-11-02T13:15:58.243

@CallMeLaNN If the column is empty then it probably means the given files are unencrypted. Does it say "encrypted" for files you have in fact encrypted? – Samir – 2014-11-02T13:18:07.320

On my work computer, even EFS encrypted ("green-marked") files have an empty "Encryption status" column - therefore, this does not work for me :-( – Jonas Heidelberg – 2015-03-28T18:56:42.093

Worked for me, though I did * encryptionstatus:encrypted. – Flyto – 2015-07-01T08:16:23.763

encryptionstatus:encrypted does not work for me either. Windows 8.1 Pro 64bit. – David Balažic – 2017-08-26T16:09:50.427

This might not the answer, I try to create an encrypted file. I dont know why in my Win7 the Encryption Status column does not show any value and so encryptionstatus:encrypted also simply shows nothing. answer from @Robert is the right way. found this file have 'E' at the begining of line. – CallMeLaNN – 2011-06-13T05:22:22.863

6

You can use Windows Search Advanced Query. In search bar type: * is:encrypted. This command will find all encrypted files in folder.

Ignacius

Posted 2009-10-22T14:54:58.733

Reputation: 61

1Did not work for me (shows no files) even though the cipher command line tool does show encrypted files (which are marked in green within Windows explorer) – Jonas Heidelberg – 2015-03-28T18:59:03.630

1Will this show hidden files too? As I have a ton of encrypted files, but all of them are hidden, when I run this query, none is showing up. – RogUE – 2015-08-23T13:58:52.117

6

After trying Total Commander and having it fail for some inexplicable reason, I tried NirSoft's SearchMyFiles and it worked excellently. Lightweight standalone executable and the results don't have cruft to wade through like the cipher command; you can easily sort by folder path to know what listings are merely subdirectories of a parent encrypted folder.

SearchMyFiles

SearchMyFiles Search Options

Christopher Galpin

Posted 2009-10-22T14:54:58.733

Reputation: 941

1Nirsoft has excellent utilities, for free. – sancho.s Reinstate Monica – 2015-04-26T06:54:33.473

0

I used cipher /s:f:\ /d > encryptionFIX.txt

Yes it was cipher a different drive letter "f"

It tries to remove encryption, any errors will be listed in the cmd prompt. Plus you can review the document for the errors.

This came in handy for me as I was cleaning up a external hdd and came across 150 files that where encrypted. So I wanted to know what and where they were as I do not use a encryption on my computers. Turns out it was from a few downloads that I can easily get. Or seeing "_MACOSX" folders on my pc. They are always encrypted.

GuberX

Posted 2009-10-22T14:54:58.733

Reputation: 1

0

For the only truly INSTANT local result:

Install Everything from voidtools. Change 1 setting to include attribute INDEXING (you do NOT need to enable quick sort to take on that overhead). This way, it is simply the attribute storage you add.

TO USE: Type this in the search bar: attrib:E and don't even need to press enter. Every EFS encrypted file ON THE ENTIRE SYSTEM ALL DRIVES is returned INSTANTLY.

Because it is indexing off the USN (and always up to date), and can even index remote folders - I have not yet found another method faster and more reliable (once it's original index is built which on most modern systems takes seconds).

Collin Chaffin

Posted 2009-10-22T14:54:58.733

Reputation: 204