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

Basic CSS: Style Multiple Elements with a CSS Class

<style>.red-text {color: red;}</style><h2 class="red-text">CatPhotoApp</h2><main><p>Click here to view more <a href="#">cat photos</a>.</p><a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute…

PowerShell: How To Stop and Start Palo Alto Cortex XDR Traps

$trapsAdminPassword='PASSWORDHERE', $trapsBin='C:\Program Files\Palo Alto Networks\Traps' function stopXdr{ param( $trapsAdminPassword, $trapsBin='C:\Program Files\Palo Alto Networks\Traps' ) echo…

JavaScript: How to Extract Text From Contents of an External Web Page

What's the Challenge? There is a software security model that prevents scripts from an existing…