A fast way to check whether your PC has a virus is to use Windows Defender. This malware protection is included with Windows and helps identify and remove viruses, spyware, and other malicious software.
Windows Defender will typically remove viruses automatically. However, in some cases you might need to remove a virus manually. This can be a technical process that you should try only if you've exhausted all other options, you're familiar with the Windows registry, and you know how to view and delete system and program files in Windows.
First, run your antimalware app to identify the virus by name. If you don't have an antimalware app or if your app doesn't detect the virus, you might still be able to identify it by looking for clues about how it behaves. Write down the words in any messages it displays, or, if you received the virus in email, write down the subject line or name of the file attached to the message. Then search an antivirus provider's website or the Microsoft Malware Protection Center for references to what you wrote down or to try and find the name of the virus and instructions for how to remove it.
After the virus is removed, you might need to reinstall some software or restore lost info. Making regular backups of your files can help you avoid data loss if your PC gets infected again. If you haven't made backups in the past, it's a good idea to start now. For more info, see Restore files or folders using File History.
For additional tips on how you can help protect your PC from viruses, see How can I help protect my PC from viruses?