TIHIDI: Install MongoDB 3.2.7 for Sitecore 8.x in one step!

Install MongoDB 3.2.7 for Sitecore 8.x in one step using Windows PowerShell.

Create a new file Sitecore_MongoDB_Install.ps1 and paste contents from https://gist.github.com/akshaysura/335d97ab7526b610a7f9e15b285b7eca

Open Windows PowerShell ISE console as an Administrator.

Open the PowerShell file you just created and run it.


If you get the error: Sitecore_MongoDB_Install.ps1 cannot be loaded because the execution of scripts is disabled on this system.

Run Set-ExecutionPolicy RemoteSigned in your PowerShell console followed by the execution of the PowerShell file.

This will install the latest MongoDB 3.2.7 as of June 14th 2016 on your machine. I added code to Unblock a zip file downloaded onto windows. This WILL cause issues as windows sees this as unsafe.

Get-ChildItem -Path $mongoDbPath -Recurse | Unblock-File


If you have any questions or concerns, please get in touch with me. (@akshaysura13 on twitter or on Slack).

P.S. The Notorious F.I.G helped me out in the past and I drew inspiration from his script and updated it. (https://gist.github.com/kamsar/98681b73979adc89610c)


3 thoughts on “TIHIDI: Install MongoDB 3.2.7 for Sitecore 8.x in one step!”

  1. Yes its working for me. You would need to update the mongo driver dll and also leave the current driver.

Leave a Reply

Your email address will not be published. Required fields are marked *