If you have been hit with any kind of virus or malware, and you had problems, and you even SUSPECT that you might STILL be having problems due to it, then doing a clean install of Windows (Not a reset, refresh or restore, a CLEAN install) is really the only adequate solution.
You can TRY a second opinion scanner like those mentioned in my brief guide, but honestly, once infected, if it's not simply a basic nuisance type infection, it can be nearly impossible to get rid of it or be sure it's not hidden in multiple sections somewhere.
Below you will find not a highly technical How-To, as there are plenty of those across the web, but instead an easily referenced resource for less technically astute members or visitors who simply want easy provision of resources related to the discovery and removal of infections in a variety of...
forums.tomshardware.com
Personally I wouldn't even mess around. Hopefully you have everything of importance backed up to another location that was NOT connected to the system while you were infected, otherwise any data on that drive is ALSO going to be very suspect. I'd simply do a clean install and if you have stuff that isn't backed up elsewhere, you can do so before doing this, but you need to thoroughly scan any personal documents, files, folders, music, movies, etc. that you take from the infected drive, before you reconnect it to the now clean installed Windows machine otherwise you may just be putting whatever was there, right back again.
While this is for Windows 10, it's really only the beginning part up to where you click "Next" on where to install Windows TO, that really matters. It's important to disconnect all drives except the drive Windows is going on and whatever drive you are installing from (Generally a USB flash drive) and then delete ALL of the existing partitions on the drive Windows is going on, then install to the unpartitioned and unformatted drive space. Windows will create any necessary partitions and perform any required formatting automatically. That part has been the same since basically Windows 8.1.
The rest of the guide should be relatively similar but there will be a few screens that are different, mostly because it's been a while since I created that clean install guide but also because there are some minor differences in the Windows 11 installer but they are few and easily worked through by simply following your own preferences.
If you are looking for the Windows 11 Clean install tutorial, you can find that here: Windows 11 Clean install tutorial (Click here) Otherwise, welcome to the Windows 10 Clean install tutorial This tutorial is intended to help you, step by step, to perform a clean install of Windows...
forums.tomshardware.com