Yes it is illegal. But I don't think Microsoft will go after anyone for just installing software for "free" on their own computer. They will probably go after companies that build computer that pirate software - but probably not after people! If they do it too much, people will most likely explore open source alternatives even more.
. They don't want that..