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: Find a Downloadable File from a Web Page

Although the function below is adequate for simple purposes. It lacks the advanced algorithm to…

PowerShell: Gather Information About Windows Shutdown Reasons

Copy and Paste this to See Result(s): $computername=$env:computername $limitEventsCount=40000 $daysSearchLimit=30 function getWindowsShutdownReason{ param( $computername=$env:computername, $limitEventsCount=10000,…

PowerShell: Add New Virtual Disk to Existing Guest VM in Hyper-V

# Adding disks (optional) $newVMNames='TestWindows2019' $extraDiskSize='200GB' if($extraDiskSize){ foreach($newVmName in $newVMNames){ STOP-VM -vmname $newVmName $diskFile=(join-path $destinationFolder…