It’s official: Microsoft Corp. on Friday took back its title as the most valuable U.S. company by market capitalization at the close of trading, unseating Apple Inc. after a more than two-year run in the top spot.

Microsoft MSFT, +0.64% shares rose 0.6% to close at $110.89 Friday for a market cap of $851.22 billion, while Apple’s AAPL, -0.54% stock fell 0.5% to close at $178.58 for a market cap of $847.43 billion. Earlier in the week, Microsoft briefly snatched the crown away from Apple in intraday trading, but Apple had regained its top spot by the market close.