Plugging a guitar into a computer

So my friend just bought a snazzy new computer and he plays the guitar and jank so we got this little adapter thingie that makes it so you can plug the big guitar cord jack into the little computer microphone jack. But when we played it and tried to record it on sound recorder it didnt pick anything up.
So I’m wondering if there’s some hardware or something we need to make it work or something.

If anyone has any experience with this or any ideas, let me know.

Gracias