Remote hack windows 10

Hi, I hope you are doing okay.
I have a question please, I am new to hacking, and I learned a few stuff on TryHackMe, I learned how to exploit and run a “malware” one windows 7 just by using the IP adress of the windows 7 and finding a vulnerability. But I was unable to do the same on my second windows 10 pro PC, do you have tips please ?

Thank you in advance