Here is how to install kubectl on Windows in 2026. Tested and verified.
Method 1: Chocolatey (Recommended)
choco install kubernetes-cliMethod 2: Winget
winget install -e --id Kubernetes.kubectlMethod 3: Direct Download
curl.exe -LO "https://dl.k8s.io/release/v1.31.0/bin/windows/amd64/kubectl.exe"
# Move kubectl.exe to a directory in your PATHVerify
kubectl version --clientEnable PowerShell Completion
kubectl completion powershell | Out-String | Invoke-Expression
# Add to $PROFILE for persistence
kubectl completion powershell >> $PROFILE