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)



  • Hetal Dave 2 years ago

    Thanks a lot Akshay! I am going to try this.

  • Daniel 1 year ago

    I like the idea of installing a late version of MongDB , but 3.2.7 is not on their compatibility list: https://kb.sitecore.net/articles/087164. According to that, 8.0 & 8.1 are compatible with MongDB 3.0

    Are you running 8.1? And is MongDB working fine for you?

  • akshaysuraadmin 1 year ago

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

Add your comment

Your email address will not be published.