Skip to content

Instantly share code, notes, and snippets.

Avatar

Márton Boda MartonBoda

View GitHub Profile
@MartonBoda
MartonBoda / Download and Install MongoDB as Windows Service PowerShell Script A nice powershell that dowloads mongodb and installs it as windows service... this script is good for development machines.
View Download and Install MongoDB as Windows Service PowerShell Script
Set-ExecutionPolicy RemoteSigned
$mongoDbPath = "C:\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip"
$zipFile = "$mongoDbPath\mongo.zip"
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9"
if ((Test-Path -path $mongoDbPath) -eq $True)
{