I came across these scripts on the

Microsoft TechNet Script Centre


Microsoft SQL Server 2005