Windows 10: Writing powershell script to allow apps through Controlled Folder Access

Discus and support Writing powershell script to allow apps through Controlled Folder Access in Windows 10 Software and Apps to solve the problem; Hi,I have been trying to write a script to allow programs such as Paint, Screen Snippet, etc. to save to protected folders. However, I found it strange... Discussion in 'Windows 10 Software and Apps' started by Philip_EffectStats, Jun 29, 2022.

  1. Writing powershell script to allow apps through Controlled Folder Access


    Hi,I have been trying to write a script to allow programs such as Paint, Screen Snippet, etc. to save to protected folders. However, I found it strange that while %UserProfile%\Documents is protected by default %UserProfile%\Desktop is not. Does not user store many of his personal files on Desktop?Also if we are to allow a program such as Paint using the scriptAdd-MpPreference -ControlledFolderAccessAllowedApplications "C:\Program Files\WindowsApps\dotPDNLLC.paint.net_4.19.6484.0_x64__h55e3w7q8jbva\PaintDotNet.exe"...What if the version number changes, in that case the path will change too rig

    :)
     
    Philip_EffectStats, Jun 29, 2022
    #1
  2. Brink Win User
    Brink, Jun 29, 2022
    #2
  3. How to remove drive from list of allowed apps in "controlled folder access"

    I recently enabled controlled folder access in the Windows Security app. I was running an executable from a USB (assigned drive letter 'I:') that required access to one of my protected folders, so I allowed it via

    Windows Security>Virus & threat protection>Manage ransomware protection>Allow an app through controlled folder access>Add an allowed app

    After removing the USB drive the program I allowed is no longer in the list of allowed apps under "allow an app through controlled folder access". However, now "Drive (IWriting powershell script to allow apps through Controlled Folder Access :)" is listed as an allowed app.

    It appears that I cannot remove the drive from the list of allowed apps. How can I remove it?
     
    Christopher54, Jun 29, 2022
    #3
  4. Eric Ber Win User

    Writing powershell script to allow apps through Controlled Folder Access

    Controlled Folder Access blocked

    Hi Aeolus0,

    The Controlled Folder Access is an enterprise-class ransomware protection component that was recently added to Windows Defender. When you turn on Controlled folder access, a lot of the folders you use most often will be protected by default. This means that
    content in any of these folders cannot be accessed or changed by any unknown or untrusted apps. Once you add additional folders, they become automatically protected as well. To add protected folders:

    • Select Virus & threat protection settings.
    • Under Controlled folder access, select Protected folders.
    • Select Add a protected folder and follow the prompts to add folders.

    If you see an App is blocked message when you try to use a familiar app, you can simply unblock the app. If this message displays:

    • Write down or take note of the path of the blocked app.
    • Select the message, and then select Add an allowed app.
    • Browse for the program you want to allow access.

    As for your query about having no sounds on your computer, it could be caused by an outdated or corrupted audio driver. For us to assist you better, kindly answer the questions below:

    • Have you made any changes to your computer prior to this issue?
    • What troubleshooting steps have you done so far?
    • Which version and OS build number of Windows 10 is currently installed? To check, press the
      Windows key, type winver, and press the
      Enter
      key.
    • Have you tried to download and install the latest audio driver from the manufacturer's website of your device?

    Meanwhile, you can try the steps in this
    link
    to troubleshoot sound issues on Windows 10.

    We'll be looking forward to your reply.
     
    Eric Ber, Jun 29, 2022
    #4
Thema:

Writing powershell script to allow apps through Controlled Folder Access

Loading...
  1. Writing powershell script to allow apps through Controlled Folder Access - Similar Threads - Writing powershell script

  2. Controlled Folder Access did not block writes to a controlled folder. Why?

    in Windows 10 Gaming
    Controlled Folder Access did not block writes to a controlled folder. Why?: Background: Controlled folder access is enabled on my Windows 11 Education computer. OneDrive is set to backup C:\Users\MYNAME\Documents. So my documents are in C:\Users\MYNAME\OneDrive\Documents, and my c:\Users]\MYNAME\Documents folder is always empty. The...
  3. Writing powershell script to allow apps through Controlled Folder Access

    in Windows 10 Gaming
    Writing powershell script to allow apps through Controlled Folder Access: Hi,I have been trying to write a script to allow programs such as Paint, Screen Snippet, etc. to save to protected folders. However, I found it strange that while %UserProfile%\Documents is protected by default %UserProfile%\Desktop is not. Does not user store many of his...
  4. How to allow xbox game bar through controlled folder access

    in Windows 10 Customization
    How to allow xbox game bar through controlled folder access: When turning Controlled folder access on, Xbox game bar record is greyed out. When enable Xbox game bar to record in settings is automatically disable when exiting settings. Doesn't know where is the Xbox game bar program to add to allowed app. Someone knows the solution for...
  5. Is it possible to allow a file through Controlled Folder Access if it'll be in a different...

    in Windows 10 Ask Insider
    Is it possible to allow a file through Controlled Folder Access if it'll be in a different...: Whenever a Dell update app runs on my laptop it runs an executable called "SSDUpdate.exe". I'd like to allow that file through Controlled Folder Access but each time it runs it's in a different folder in the C:\Windows\Temp folder. Is there a way to exclude the file by its...
  6. Allowing Apps. through Controlled folder access

    in AntiVirus, Firewalls and System Security
    Allowing Apps. through Controlled folder access: I have a list of 14 ".exe" files under the subject heading; there seems to be no way of deleting them or allowing them; the "+ Add an allowed app button" just results in opening up what appear to be I have a list of 16 ".exe" files under Allowing Apps. through Controlled...
  7. Controlled Folder Access keeps blocking allowed app

    in AntiVirus, Firewalls and System Security
    Controlled Folder Access keeps blocking allowed app: I have gone through the repeated tedium of adding, one at a time, .exe files to the list of programs allowed through Win10's Controlled Folder Access. This typically works fine. I usually have to restart the app in question, and occasionally seem to have to reboot, but...
  8. Allow an app through Controled folder access

    in AntiVirus, Firewalls and System Security
    Allow an app through Controled folder access: Hello I am not sure what this image attached to this question is asking I.e I have no idea what app is being referr[ATTACH]ed to! I am not even sure what the 'Control folder' refers to! I was going to look it up like usual before posting but I have many things open...
  9. Allow an app through Controlled folder access help please

    in AntiVirus, Firewalls and System Security
    Allow an app through Controlled folder access help please: Hello, Just deleted a couple of embroidery programs and yet they are showing up in controlled folder access, how to rid of these?...
  10. Add Allow App through Controlled Folder Access context menu Windows 10

    in Windows 10 Tutorials
    Add Allow App through Controlled Folder Access context menu Windows 10: How to: Add Allow App through Controlled Folder Access context menu Windows 10 How to Add "Allow App through Controlled Folder Access" context menu in Windows 10 Starting with Controlled folder access is introduced in Windows Defender Antivirus. When Controlled...