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

16 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
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
0 answers

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
  • 521
  • 5
  • 22
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
  • 4,617
  • 2
  • 28
  • 50
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
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
  • 143
  • 1
  • 8
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
1
vote
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…
0
votes
0 answers

How to merge the working folders and config folder access for multiple service (transmission, minidlna, samba, etc)

It's a little complex, verbose description below. I am building a ubuntu as my home service PC, including following service components: transmission-daemon (as a download tool for PT/BT torrent) minidlna (as a DLNA Server that the…
0
votes
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…
0
votes
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
  • 2,217
  • 6
  • 20
0
votes
1 answer

compiling C program with gcc; Cannot open output file _.exe: no such file or directory

I just started trying to program in C and I've downloaded all kinds of IDE's and compilers and nothing seems to be working. Cygwin keeps giving me this error when i try to compile my program: C:\Users\Paul\Documents\Timmy λ gcc -o nutt…
0
votes
0 answers

NSIS Installer on Windows 10 triggers Bitdefender Ransomware detection

I am working currently on a software which I am packing into an NSIS installer and distribute the resulting exe file. The installer must run primarily on Windows 10. Since a few days, Bitdefender added protection against ransomware. Since my…
Freddy
  • 766
  • 2
  • 12
  • 28
-1
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
  • 458
  • 5
  • 10
1
2