Windows 10 Pro, NTFS: My downloads folder is set to encrypt (EFS). Files downloaded to the download folder do not get encrypted. This started becoming a problem in Windows 8.1. Problem was sporadic. In Windows 10 problem is now 100%. No file downloaded to this folder is encrypted. How can I get Windows 10 to observe the “encrypt contents” attribute of this folder?
Other folders on this machine having the “encrypt contents” attribute work properly. Only the downloads folder fails to work.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
encryption (efs) fails on downloads folder
Home » Forums » AskWoody support » Windows » Windows – other » encryption (efs) fails on downloads folder
- This topic has 10 replies, 3 voices, and was last updated 8 years, 7 months ago.
AuthorTopickcgarrett
AskWoody PlusAugust 4, 2016 at 10:48 am #506493Viewing 5 reply threadsAuthorReplies-
Rick Corbett
AskWoody MVPOctober 13, 2016 at 7:07 am #1581285I wonder if it’s because, as downloads, they are automatically blocked from some operations. For example:
45751-blocked
Click to enlargeHave you checked whether unblocking them resolves the encryption issue?
To save having to go through each file individually you can unblock files en masse using PowerShell. For example, if your downloads folder is C:TempDownloads then you could use the following:
-
[*]Right-click on Start.
[*]Select Command Prompt (Admin).
[*]When the command prompt window opens, type powershell and press Enter.
[*]When PowerShell’s PS prompt appears, type the following and press EnterCode:Get-ChildItem -Path ‘C:TempDownloads’ -Recurse | Unblock-File
That’s it. Note that unblocking en masse can take some time, obviously depending on how many files are in the Downloads folder. You’ll be able to tell when the operation has finished because the PS prompt will re-appear, as in the following screenshot:
45752-blocked1
Click to enlargeTry the encryption process again and let us know the result.
Hope this helps…
-
Rick Corbett
AskWoody MVPOctober 13, 2016 at 11:28 am #1581354Edit: I realised that I would be using this process quite often and that I store downloads in different locations so I knocked up a really quick-and-dirty GUI using AutoHotkey. The GUI just pops up a Browse for folder dialog, saves the result as a variable then feeds that to the PowerShell command without displaying the CMD window. (It also obviates the need to ‘allow’ PowerShell scripts so when I compile it I can use it as a portable utility for use on other PCs.)
It’s become immediately obvious that the unblocking process completes MUCH faster if the CMD/PowerShell command window is not visible. I have no idea why this is the case.
Hope this helps…
-
Rick Corbett
AskWoody MVPOctober 13, 2016 at 12:25 pm #1581358ROFL. Well, I was going to offer a compiled version of my AHK UnBlocker script but VirusTotal informs me that my compiled code fails 3 out of 56 scanners. I’ve never heard of these 3 Chinese ‘scanners’ and I know they’re just flagging up the AHK binary within my compiled executable but – hey ho – better safe then sorry, eh?.
45760-virustotal
Click to enlargeI’ll just post my (hopefully well-documented) AHK source code instead:
Code:; https://blogs.technet.microsoft.com/heyscriptingguy/2015/01/10/powertip-use-powershell-to-unblock-files-in-folder/ ; Prompt to ‘Run as Admin’, i.e. show UAC dialog If Not A_IsAdmin { Run *RunAs “%A_ScriptFullPath%” ; Requires v1.0.92.01+ ExitApp } ; Create the GUI elements Gui, Add, Text, x20 y10 w170 h20 , Select SOURCE folder Gui, Add, Button, x25 y30 w100 h30 , SOURCE Gui, Add, Button, x25 y65 w100 h30 , Cancel Gui -SysMenu Gui, Show, w150 h100, Windows File Unblocker return ; Determine what the SOURCE button does ButtonSOURCE: FileSelectFolder, SourceVar, *%A_MyDocuments%, 4, Select a SOURCE folder ;Select a source folder (with default location) ; Submit the results of the user’s choice Gui, submit ;Save the selected folder path to a variable ;MsgBox %SourceVar% ;Use MsgBox to test output to commandline Gui, Destroy ;Close the first GUI so it doesn’t muck up the progress bar ; Create and run the PowerShell command psScript = ( Get-ChildItem -Path ‘%SourceVar%’ -Recurse | Unblock-File ) Run PowerShell.exe -Command &{%psScript%} ,, hide ; Create a second GUI showing looping progress bar (‘cos unblocking loads of files can take some time) ; Credit to polyethene for the progress bar routine (https://autohotkey.com/board/topic/12306-infinite-progress-bar/#entry79882) Gui, Add, Progress, vlvl -Smooth 0x8 w350 h18 ; PBS_MARQUEE = 0x8 Gui, Show, , Unblocking… Please wait… SetTimer, Unblocking, 45 Return Unblocking: GuiControl, , lvl, 1 Process, Exist, powershell.exe, ; Check whether PowerShell still running If (!Errorlevel){ SetTimer, Unblocking, Off ; Turn off process timer Gui, Destroy ; Close the second GUI MsgBox, 64, Windows File Unblocker, Finished! Your files have been unblocked! ; Inform user that process has finished ;Run, %SourceVar% ; Open the folder to show files ExitApp } Return ; Determine what the CANCEL button does ButtonCancel: ExitApp Esc::ExitApp ; Use the Esc key to exit the app
Hope this helps…
-
Paul T
AskWoody MVPOctober 13, 2016 at 12:26 pm #1581359A bit like this?
http://michaelcrump.net/unblock-files-in-windows-8-using-powershell-and-registry/cheers, Paul
-
Rick Corbett
AskWoody MVPOctober 13, 2016 at 12:36 pm #1581361A bit like this?
http://michaelcrump.net/unblock-files-in-windows-8-using-powershell-and-registry/It looks good on the surface but I couldn’t get any of the download links in the article (for the .REG file) to work.
Did you follow any of the download links or recreate the .REG file from the article?
If so, can you repost the .REG file and let us know whether it works?
-
Paul T
AskWoody MVPOctober 20, 2016 at 11:50 am #1582108It looks good on the surface but I couldn’t get any of the download links in the article (for the .REG file) to work.
Works for me using the following text in a file called unblock.reg.
Code:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT*shellpowershell] @=”Unblock Files” [HKEY_CLASSES_ROOT*shellpowershellcommand] @=”C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe Unblock-File -LiteralPath ‘%L'”
cheers, Paul
-
Rick Corbett
AskWoody MVP
-
-
-
-
kcgarrett
AskWoody PlusOctober 14, 2016 at 11:56 am #1581416In the time since I posted this I have learned a little about the problem. Executive summary: this download issue appears to be a bug in Firefox. As time permits I’ll take it up with those folks. When I use MS Edge the problem does not happen.
I do not prefer Edge to Firefox.
Before making the Firefox discovery I made a little batch file. I know I’m lagging behind by not knowing powershell. The batch file issues the following command to encrypt the content of the downloads directory (successfully):
cipher /e /s:”c:usersMEdownloads”
I connected the batch file to a shortcut on the desktop (notice the complete lack of elegance) and run it when I’ve downloaded bank statements or anything else that should be encrypted. The shortcut could also be connected to Scheduler.Presumably the time will come when Firefox fixes the problem and none of this will be an issue. I did not test Chrome.
-kc
-
Rick Corbett
AskWoody MVPOctober 20, 2016 at 6:11 pm #1582160In the time since I posted this I have learned a little about the problem. Executive summary: this download issue appears to be a bug in Firefox. As time permits I’ll take it up with those folks. When I use MS Edge the problem does not happen.
I do not prefer Edge to Firefox.
Before making the Firefox discovery I made a little batch file. I know I’m lagging behind by not knowing powershell. The batch file issues the following command to encrypt the content of the downloads directory (successfully):
cipher /e /s:”c:usersMEdownloads”
I connected the batch file to a shortcut on the desktop (notice the complete lack of elegance) and run it when I’ve downloaded bank statements or anything else that should be encrypted. The shortcut could also be connected to Scheduler.Presumably the time will come when Firefox fixes the problem and none of this will be an issue. I did not test Chrome.
-kc
Thanks for reporting back what the issue is.
PS – Who cares about elegance as long as it works?
-
-
Rick Corbett
AskWoody MVPOctober 20, 2016 at 6:07 pm #1582159Hmmm… I could only select up to 15 files before the right-click menu option to Unblock files disappeared from view. In addition, each ‘unblock’ operation generates a new commandline window and slows the operation badly.
By comparison, the ‘unblock’ operation using the AHK script wrapper (from post #5) does all the files in a selected folder and is much faster. The AHK script (which I compiled for the purposes of the video) starts at 0.18 seconds in:
Viewing 5 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Cox Communications and Charter Communications to merge
by
not so anon
41 minutes ago -
Help with WD usb driver on Windows 11
by
Tex265
5 hours, 51 minutes ago -
hibernate activation
by
e_belmont
9 hours, 37 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
13 hours, 24 minutes ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
16 hours, 29 minutes ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
16 hours, 31 minutes ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
19 hours, 41 minutes ago -
Out of band for Windows 10
by
Susan Bradley
21 hours, 14 minutes ago -
Giving UniGetUi a test run.
by
RetiredGeek
1 day, 4 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
1 day, 11 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 day, 9 hours ago -
Auto Time Zone Adjustment
by
wadeer
1 day, 16 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
1 day, 13 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
18 hours, 33 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
6 hours, 59 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
13 hours, 23 minutes ago -
Apps included with macOS
by
Will Fastie
11 hours, 15 minutes ago -
Xfinity home internet
by
MrJimPhelps
8 hours, 2 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 9 hours ago -
Debian 12.11 released
by
Alex5723
2 days, 13 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
2 days, 17 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
1 day, 20 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
13 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
3 days, 10 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
3 days ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
22 hours, 9 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
3 days, 4 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
2 days, 12 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
1 day, 14 hours ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
3 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.