Wells Fargo & Co., the bank working to contain a scandal over bogus accounts, was suspended from doing some business with its hometown of San Francisco.

The city’s Board of Supervisors on Tuesday suspended the firm for two years from providing services as a broker dealer, in commercial banking and in commercial paper. The measure, sponsored by Supervisor John Avalos, also removed Wells Fargo from securities investments and counterparty/repurchasing agreements. San Francisco had barred the lender in September from a banking program for low-income residents.