Are there any scripts available with anyone, for generating SQL scripts for all the objects in a server?

Thanks