Yesterday, I had to script all the indexes created on a SQL Server Database. Here is a nice article through which one can get the script of all indexes created on a database.