In a new project I’m working on I had to create a new Content Type and make it available on all the document libraries in the site collection. I had to choices: browse each document library’s settings page and enable the content type via the UI or let PowerShell do it for me. Since I’m really lazy I chose the scripting way.
A few days ago I published the script on TechNet Gallery, “Enabling content type on multiple lists with PowerShell“. As you can imagine the script enables a content type on each document library in a site collection. It takes three parameters: site, name and list.