By default, your antivirus will block the ransomware infection.
This is because the ransomware encrypts files on the drive or in a network share that are not encrypted.
However, you can turn off security door locks in Windows 10 by opening the Start Menu, typing security door, and clicking on Settings.
Then click on Security Settings.
If you see the Security Settings page, click on Lock this PC button.
Then choose the lockable PC to be blocked and click Apply.
Windows 10 is now blocking the ransomware on the lock and if you click on it again, the ransomware will be blocked again.