Skip to content

Instantly share code, notes, and snippets.

@qnzkrew
qnzkrew / enable-remote.bat
Last active April 8, 2026 14:09
Enable SSH+WinRM on Windows
@echo off
echo Checking admin...
net session >nul 2>&1 || (echo RIGHT-CLICK THIS FILE AND RUN AS ADMINISTRATOR & pause & exit /b 1)
echo Installing SSH Server...
powershell -Command "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"
echo Starting SSH...
sc config sshd start=auto
net start sshd