Yahoo Inc.’s appointment of two board members on Thursday signals the Internet company is girding to battle activist investors over its future.

Yahoo’s new directors are Catherine Friedman, a former managing director of Morgan Stanley, and Eric Brandt, former finance chief of semiconductor company Broadcom Corp. The additions bring the board back to nine members following two resignations in recent months.

The...