Posted On April 25, 2022

PowerShell: Enable CredSSP on Windows

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: Enable CredSSP on Windows

PowerShell:

# Enabled WinRM
Enable-PSRemoting -Force

# Enable CredSSP
Enable-WSManCredSSP -Role Server -Force

Legacy Command Line:

# Enable WinRM
winrm 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

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Quick Snippet to Remove Virtual Machine Snapshots in VMM

$vmNames=@( 'MACHINE1', 'MACHINE2' ) foreach($vmName in $vmNames){ $checkpoint = Get-SCVMCheckpoint -VM $vmName if($checkpoint){$checkpoint|%{Remove-SCVMCheckpoint -VMCheckpoint $_…

PowerShell: Get ‘Size on Disk’ of Files in Windows

There are many methods of attempting to obtain "size on disk" values of files in…

Clean Windows C Volume

Have you ever ran into a sluggish performance on a Windows machine that is being…