Attached files

file filename
10-K - 10-K - OFFICE PROPERTIES INCOME TRUSTa2202119z10-k.htm
EX-8.1 - EX-8.1 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-8_1.htm
EX-31.3 - EX-31.3 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-31_3.htm
EX-31.4 - EX-31.4 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-31_4.htm
EX-31.1 - EX-31.1 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-31_1.htm
EX-32.1 - EX-32.1 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-32_1.htm
EX-31.2 - EX-31.2 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-31_2.htm
EX-21.1 - EX-21.1 - OFFICE PROPERTIES INCOME TRUSTa2202119zex-21_1.htm

QuickLinks -- Click here to rapidly navigate through this document


EXHIBIT 23.1

Consent of Independent Registered Public Accounting Firm

        We consent to the incorporation by reference in the Registration Statement (Form S-3 No. 333-167982) of Government Properties Income Trust and in the related Prospectus of our reports dated February 25, 2011, with respect to the consolidated financial statements and schedule of Government Properties Income Trust, and the effectiveness of internal control over financial reporting of Government Properties Income Trust, included in this Annual Report (Form 10-K) for the year ended December 31, 2010.

 

/s/ Ernst & Young LLP

Boston, Massachusetts
February 25, 2011




QuickLinks

Consent of Independent Registered Public Accounting Firm