As already mentioned, these are known as Tech Support Scams as discussed in these official online pages by the US Federal Trade Commission - Consumer Information:
Tech Support Scams Consumer Information
https://www.consumer.ftc.gov/articles/0346-tech-support-scams
And also by Microsoft itself:
Avoid Phone Scams Cybercriminal Tech Support Scam Security Threats
https://www.microsoft.com/en-us/safety/online-privacy/avoid-phone-scams.aspx#alreadyinfo
Everyone responding to you in these forums is either a volunteer helper like myself or a contract worker for Microsoft, so you'll often receive different suggestions of how to resolve this or protect yourself depending upon whether you allowed a scammer to access your PC over the Internet or not.
It's likely that your name and phone number may have been sold by scammers to others as known to accept such calls, so you need to realize this and simply hang up the phone when any of these call, since none are ever telling the truth or can be trusted.
As mentioned, it's best to find a local support organization for your PC if possible, since you can see that these people are real and not simply an unknown voice on the phone or an email address.
If you've recently provided your credit card or other financial information to a possible scammer, start by contacting your bank and telling them what happened, they'll have aid relating to your financial safety.
Rob