Glad you were on your toes and being suspicious. Here is a big discussion about it below to show you are not alone:
I received many of these calls as well. I toyed with all the scammers until they stopped calling.
Cheers and be safe!
I received a call on my husband's landline from Microsoft Technical Department. The caller identified himself as Peter Jones. He had an Indian accent. He wanted me to go on the internet with my computer, because there were many corrupt files downloaded on my computer every time I go online. He had to help me to remove it.
I thought it sounded strange, because how would he link the landline to my computer? in any case, I asked him to call me on Saturday, because my laptop was not with me. I gave him my mobile number. He gave me a code: 05.
I did not trust this, and Googled Microsoft Technical department. I found interesting information there, and could not wait for Peter to call back.
Today, Friday, I received another call from my friend. He called from the number +1 516-342-5264. It said New York on my phone. He said he wanted more information from me. I asked him how on earth he would know that my computer has problems if he wanted info from me. He should know certain information. I also told him that I contacted Microsoft, and they said they don't do things this way. (I did not)
When I told him that he was a fraud, he put the phone down. Just an alert that this is still continuing. I live in South Africa.