My understanding of the sanctions regime is that it's not legal to sell software to Iran, so how do they get Microsoft Windows in the first place? Is the country running on pirated software?
Well yes actually, it's pretty common I've worked on government systems (not Iran but close and not embargoed) that uses pirated Windows, Office Suite.