Microsoft struggled in its first decade in China as it tried to translate its large market share into revenue from selling legitimate software copies. When Microsoft sued software pirates in Chinese courts it consistently lost cases. In response, the Chinese government promoted free and open-source Linux operating systems, fearing Microsoft software could contain spyware. In the mid-2000s, China required government agencies and PC manufacturers to use licensed software. This helped shift Microsoft's strategy away from its typical global "one-size-fits-all" pricing model. While Microsoft did not initially need the Chinese market, its growing support of Linux posed a long-term threat by creating an alternative ecosystem that could produce more affordable competitors not reliant on Windows.