This PowerShell script checks that your Windows machine is fully set up to run Sitecore Containers, performing:
- ✅ Hardware checks (CPU, RAM, disk)
- 🛠 OS & Windows Feature validation (Edition, build, Containers, Hyper‑V, IIS status)
- 📦 Software checks (Docker Desktop, container mode, DNS config, SitecoreDockerTools)
- 🌐 Network port availability
- ⚙️ Misc. checks (CBFSConnect driver,
SITECORE_LICENSE
variable)
You can run it in either interactive or unattended mode—perfect for local setup or CI pipelines.
Run this script from an admin-elevated PowerShell session:
Start-BitsTransfer -Source "https://raw.githubusercontent.com/strezag/sitecore-containers-prerequisites/main/sitecore-containers-prerequisites.ps1"
.\sitecore-containers-prerequisites.ps1
Run unattended & quiet, with pass/fail message:
Start-BitsTransfer -Source "https://raw.githubusercontent.com/strezag/sitecore-containers-prerequisites/main/sitecore-containers-prerequisites.ps1"
.\sitecore-containers-prerequisites.ps1 -Unattended -Quiet
Write-Host "Exit code is $LastExitCode which means you $($LastExitCode -eq 0 ? 'passed' : 'failed')"
Run unattended, full output:
Start-BitsTransfer -Source "https://raw.githubusercontent.com/strezag/sitecore-containers-prerequisites/main/sitecore-containers-prerequisites.ps1"
.\sitecore-containers-prerequisites.ps1 -Unattended
- Prerequisites
- Installation
- Usage
- Parameters
- Checks Performed
- Menu Options
- Examples
- Exit Codes
- Screenshots
- Contributing
- License
- Links
- Windows 10/11 Pro, Enterprise, or Education (build 1903+ recommended)
- PowerShell 5.1+ (run in Windows PowerShell as Administrator; ISE not supported)
- Internet access for downloads and DNS checks
- Admin rights required to run and install components
Start-BitsTransfer -Source "https://raw.githubusercontent.com/strezag/sitecore-containers-prerequisites/main/sitecore-containers-prerequisites.ps1"
.\sitecore-containers-prerequisites.ps1
git clone https://github.com/strezag/sitecore-containers-prerequisites.git
cd sitecore-containers-prerequisites
.\sitecore-containers-prerequisites.ps1
Use the arrow keys to select a check or action:
.\sitecore-containers-prerequisites.ps1
Run a scan with no prompts:
.\sitecore-containers-prerequisites.ps1 -Unattended
Target a specific check with -MenuSelection
, and suppress output with -Quiet
.
.\sitecore-containers-prerequisites.ps1 -Unattended -MenuSelection 1 -Quiet
Parameter | Description |
---|---|
-Unattended |
Runs the script without interactive prompts |
-MenuSelection <0–16> |
Executes a specific check or action by index (default: 0 = Full) |
-Quiet |
Suppresses non-critical output |
-SuppressDockerDNSRequirement |
Skips DNS connectivity test for Docker in unattended mode |
- ≥ 4 CPU cores
- ≥ 16 GB RAM (32 GB recommended)
- ≥ 25 GB free disk space (SSD recommended)
- Windows 10/11 Pro/Ent/Edu, build 1903+
- Containers & Hyper‑V Windows features enabled
- IIS service is stopped
- CBFSConnect2017 driver compatibility
- Docker Desktop installed & running (Windows containers mode)
com.docker.service
+ Docker daemon active- DNS config (8.8.8.8 or 1.1.1.1 optional)
- SitecoreDockerTools PowerShell module
SITECORE_LICENSE
user environment variable set
- TCP 443, 8079, 8081, 8984, 14330 available
Index | Action |
---|---|
0 | Full Prerequisite Check |
1 | Hardware Prerequisite Check |
2 | Operating System & Features Check |
3 | Software Prerequisite Check |
4 | Network Port Availability Check |
5 | Install Chocolatey |
6 | Install Docker Desktop |
7 | Install mkcert (TLS cert tool) |
8 | Install SitecoreDockerTools PowerShell module |
9 | Enable Containers Windows feature |
10 | Enable Hyper‑V Windows feature |
11 | Open Sitecore 10.x Dev Guide |
12 | Download Sitecore Container Deployment Package |
13 | Open Sitecore Container Docs |
14 | Remove SITECORE_LICENSE env var |
15 | Open this GitHub repo |
16 | Exit script |
# Run full check interactively
.\sitecore-containers-prerequisites.ps1
# Run full check silently for CI
.\sitecore-containers-prerequisites.ps1 -Unattended -Quiet
# Run hardware check only
.\sitecore-containers-prerequisites.ps1 -Unattended -MenuSelection 1
Switch to Windows Containers Demo
Bug reports, feature ideas, and pull requests are welcome!
GNU GENERAL PUBLIC LICENSE – see LICENSE for details.