Additional Microsoft Defender tools and services that provide security across various platforms and environments
This sounds like a fake Microsoft Defender/technical support scam pop-up, rather than Microsoft Defender actually locking the computer.
If the message appeared while browsing the web and is telling you to call a phone number, download a “fix” tool, or give someone remote access to the PC, do not follow those instructions. Microsoft does not use these pop-ups to request remote access or payment.
If you cannot interact with the screen, try the following:
Press Ctrl + Alt + Delete and select Task Manager.
If Task Manager opens, find your browser (Microsoft Edge, Chrome, etc.) and select End task. This should close the page displaying the fake warning.
If that does not work, press Ctrl + Shift + Esc to try opening Task Manager directly.
Restart the computer if necessary.
Once Windows starts normally, open Windows Security > Virus & threat protection and run a Full scan.
If you are still concerned about malware, run Microsoft Defender Offline scan. This scans the PC outside the normal Windows environment and can detect threats that hide while Windows is running.
Also, check Windows Security > Virus & threat protection > Protection history. A genuine Defender detection should be recorded there.
Do not call any phone number shown in the pop-up, do not install software it recommends, and do not give anyone remote access to the computer.
If you already called the number, installed software, provided remote access, or entered passwords/payment information, the situation is more serious and you should disconnect the PC from the internet and secure any affected accounts from a different trusted device.