How do I prevent my Mac from opening so many windows every time I restart?
When you go to shutdown/restart, unclick the check box to disable the resume feature, which is likely what is opening all these windows (that were present upon shutdown).



If this doesn't do it, check that these applications are not in your user start up list.