This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |