Settings > Update & security > Windows Defender Security Center
Click Virus & threat protection > Manage Ransomware protection
Turn on Controlled folder access and click Protected folders to add a folder that you tend to protect from ransomware
src - https://toolbox.easeus.com/file-lock-tips/protect-files-and-folders-from-ransomware.html#2
Click Virus & threat protection > Manage Ransomware protection
Turn on Controlled folder access and click Protected folders to add a folder that you tend to protect from ransomware
src - https://toolbox.easeus.com/file-lock-tips/protect-files-and-folders-from-ransomware.html#2