I recently did a PowerShell and SharePoint session at Tech Ed NZ 2011 and then again during Code Camp in the following weekend. The focus was on using PowerShell to create and configure a SharePoint portal and as promised here is a list of the scripts I used during my demo. These scripts and a couple other useful files are in my SkyDrive so you can go and grab them individually. The whole lot is in the same place as a zip too.
This is the order that I showed and used them (or intended to):
- Add a managed account
- Add and configure a web application
- Add the managed metadata service application (Didn’t run this one just showed it)
- Adding site collections
- Configuring and adding content databases
- Backup and restore the farm, a service application and/or a web application (Didn’t run this one just showed it)
- Backup and restore a site collection
- Start a search crawl
- Add some sub sites
- Change the site collection properties to point to a search center
- Change the site properties to use alternate CSS and a site logo
- Adding users to the sites and adding a second site collection administrator
- Walkthrough of the web hierarchy (webs, lists, list templates, content types, fields)
- Basic deploy of solutions (WSP’s)
- A better way to deploy solutions
- Turning on the developer dashboard
- Checking the ULS
Note: These scripts were kept pretty simple to make them easy to read and describe during the demo. I’d strongly recommend you add a bit of error checking, maybe a few if/check statements etc before just running them willy nilly. Also some things were commented out during the sessions – uncomment them at your leisure.
Code Camp Slide Deck
The Code Camp slide deck is more or less the same as the Tech.Ed one.
During the recent (August 29, 2010) Auckland Code Camp a buddy of mine Chaks had to pull out of a planned SharePoint 2010 developer session. Luckily Chan and myself were on hand to put together the following session which is a high level overview of SharePoint 2010 Development.
Feedback is always welcome on these sorts of things…but be kind we only had a couple of hours to prepare 🙂