Skip to content

Instantly share code, notes, and snippets.

View marouane-miftah's full-sized avatar
🏠
Working from home

marouane-miftah

🏠
Working from home
View GitHub Profile
#
# MongoDB (as a windows service)
#
$mongoDbPath = "$env:SystemDrive\MongoDB"
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg"
$url = "https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-4.4.10.zip"
$zipFile = "$mongoDbPath\mongo.zip"
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-windows-4.4.10"
if ((Test-Path -path $mongoDbPath) -eq $false)