PowerShell:
# Enabled WinRM
Enable-PSRemoting -Force
# Enable CredSSP
Enable-WSManCredSSP -Role Server -Force
Legacy Command Line:
# Enable WinRMwinrm quickconfig -quiet
# Entering legacy command line from PowerShell
PS C:\Users\Administrator> cmd
Microsoft Windows [Version 10.0.17763.107]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>winrm set winrm/config/service/auth @{CredSSP="true"}
Auth
Basic = false
Kerberos = true
Negotiate = true
Certificate = false
CredSSP = true
CbtHardeningLevel = Relaxed
Validation:
# Validate that CredSSP is enabled
PS C:\Users\Administrator> winrm get winrm/config/service/auth | select-string "CredSSP"
CredSSP = true
Categories: