Microsoft is a software company, that's their bread and butter. Everything else they do is to supplement that, which includes hardware, however that's a small part of the overall company... sure they would love to have crazy popular hardware in homes and businesses that what the Xbox was/is an attempt at.
And if you still want to debate and throw stannery around.
This is MS mission statement from 11 years ago. Notice what they say they do 1st and then what they also do after the 1st thing.
Business Description
Now here is Sony's
Notice the 1st thing they mention is electronics...
That's because they are a actually hardware company. Let y'all tell it since they been creating and moving millions of games and software they are a software company