In most cases, production companies can film the exteriors of buildings with no worry. Doing so will not infringe on any copyrights and the owners of the buildings themselves cannot force the production company to pay. The production companies are not even required to seek permission when filming a building’s exterior.
However, if the building exterior features a registered company name or logo, there may be intellectual property rights that could be violated by filming. It would be best to consult with the company that owns the building in those scenarios.