Questions tagged [controlled-folder-access]

The Windows Defender controlled folder access in programming Windows applications.

The Windows Defender controlled folder access in programming Windows applications.

References:

Protect important folders with controlled folder access
Configure Controlled Folder Access in Windows 10

Related tags:
windows-security
windows-defender

18 questions
7
votes
0 answers

Bypass restrictions of enabled Folder Access Control of Windows Defender

I've got an application written with C# which is installed via InnoSetup. With enabled Controlled Folder Access of Windows 10's Defender, the setup fails to create a desktop icon (showing the message PersistFile::Save failed, code 0x80070002) --…
5
votes
1 answer

Git Bash commands are blocked by ransomware protection

I've discovered that Git Bash commands are being blocked by Windows 10 Ransomware protection. This happens only if I am trying to execute them in Windows folders such as Documents. I've tested this with mkdir and touch but it probably involves more…
gofraidh
  • 673
  • 8
  • 26
5
votes
5 answers

Jupyter notebook error Windows 10

Problem: Jupyter is not able to save, create (I imagene delete) any file type. But I can load them fine An example of creating file Creating File Failed An error occurred while creating anew file. ''' Unexpected error while saving file:…
3
votes
2 answers

Detect when Controlled Folder Access is active

On Win10, the "anti-ransomware" feature Controlled Folder Access impedes accessing non-whitelisted softwares to certain folders. Is there a way (API) to know if that feature is in place when you get an error in some file operation?, so far I could…
tru7
  • 6,348
  • 5
  • 35
  • 59
2
votes
0 answers

Trouble saving a matplotlib figure on Windows

I'm currently experiencing some difficulties saving a matplotlib figure on Windows (10). I'm aware that raw strings need to be used, but even using those and making sure that the path is correct, a FileNotFoundError gets raised. I've also tried with…
2
votes
3 answers

Trouble setting with git

I'm getting this error when trying to set the git init: $ git init error: could not lock config file C:/Users/khaled/Desktop/firstTemplete/.git/config: No such file or directory fatal: could not set 'core.repositoryformatversion' to '0' anyone have…
2
votes
1 answer

Saving a file in SQL Server Management Studio failed

I am a student... I try to save a query into a file in my documents, but I get an error message c:\user\my_account\documents\script.sql file not found Please check the file name and try again. Other questions: Generation script failed Can't…
2
votes
4 answers

Create React App : Range error - Maximum call stack size exceeded

I get this error when trying to create a new react app. Tried updating create-react-app using npm and reinstalling React. C:\Users\Panduka\Documents\tests>create-react-app markdown path.js:33 function normalizeStringWin32(path, allowAboveRoot) { …
Panduka
  • 153
  • 1
  • 10
1
vote
0 answers

Unable to retrieve accessed folders from Event Logs using PowerShell

I am trying to control accesses to specific folder, so I have Audit Object Access policy enable and I've also enabled Auditing on the folder I want. Now I plan to see these accesses on a CSV file. I have the following script that is supposed to…
1
vote
1 answer

Unable to install Docker on windows 10

I am trying to install docker on windows machine but it doesn't get install and stop its process in the middle of installation.I have checked for all prerequisite,and my machine fulfills all. I have NP AV antivirus and it gives me warning like…
1
vote
1 answer

Can't create folders - FileNotFoundError: [WinError 2] The system cannot find the file

I'm trying to do the simplest thing ever and I can't get it to work. I'm in my working directory, let's call it 'WorkDir' and this is it: C:\WorkDir I want to create: newpath = 'C:\WorkDir\Video\Files' if not os.path.exists(newpath): …
SCool
  • 3,104
  • 4
  • 21
  • 49
1
vote
2 answers

How to check for directory write permission in .NET when 'Controlled folder access' ON

When trying to create folder in My Documents with 'Controlled folder access' ON CreateFolder throws FileNotFoundException. I need to check if my app can create folder in My Documents. How I can check that I have permission for it when 'Controlled…
windu
  • 21
  • 2
0
votes
1 answer

Unable To Install React.js || "Use controlled folder access in windows" error occurred

I Am Trying To Install React App Using npx create-react-app myapp but use controlled access error is occurring.
0
votes
1 answer

Copying a file from C:\Windows\System32 folder to C:\Windows\SysWOW64 folder using Fortran and/or C++

I am trying to copy a file from C:\Windows\System32 folder to C:\Windows\SysWOW64 folder using Fortran and/or C++ code(s). Fortran code: call system ('copy C:\Windows\System32\filename.extension C:\Windows\SysWOW64\filename.extension') end C++…
0
votes
1 answer

WritePrivateProfileString produces ERROR_FILE_NOT_FOUND

My Software is writing to an ini file in c:\users...\documents and from time to time I get error reports from users where the WritePrivateProfileString call returns false and then GetLastError returns 2 (ERROR_FILE_NOT_FOUND). I don't understand how…
Tannin
  • 488
  • 5
  • 11
1
2