Unless you know what ransomware or such infected the PC it's usually the old restore from backup to fix it.

The Windows PC is under siege to the point that no one I know does not backup.
Bob