I had a chance to play around with powershell to get Sitecore up and running supplied only with the Sitecore zip file. Starting with a discussion with a colleague of mine about how powershell can register a website in IIS and also have access to Sql Server database i’m curious to actually try it out.
The script basically does the following
- Get Sitecore CMS and DMS zip file from a specified folder file
- Extract both zip file into a target folder
- Structure the folder so that DMS files goes into the right folder
- Register a new web application pool in IIS
- Register a new website in IIS
- Update the host file
- Attach the database files in Sql Server
- Start the website
- Open a browser and if all went ok we’ll have Sitecore displayed
I get to know a few things about powershell as well in doing this, it’s actually pretty powerfull stuff. Feel free to checkout the code in https://github.com/reyrahadian/sitecore-installer