Command to clipboard

[any command] | clip

Enlarge command prompt

mode 200,50  

Show SSL bindings

netsh http show sslcert  

Remove SSL binding

netsh http delete sslcert ipport=  

Find Windows service

sc query | find "NameOfServ"  

Remove Windows service

sc delete "FullNameOfService"</code></pre>  


Install Server

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~  
Set-Service -Name sshd -StartupType Automatic  
Start-Service -Name sshd  

Set PowerShell as the default shell

New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force  

Authorized Keys (server)

Install-Module -Force OpenSSHUtils  
Repair-AuthorizedKeyPermission authorized_keys  

Authorized Keys (server - administrator)


> icacls .\administrators_authorized_keys
.\administrators_authorized_keys NT AUTHORITY\SYSTEM:(F)

Full Docker Install

Install-WindowsFeature -Name Containers  
Uninstall-WindowsFeature Windows-Defender  
Restart-Computer -Force

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force  
Install-Package -Name docker -ProviderName DockerMsftProvider -Force -RequiredVersion 19.03  
Start-Service docker