PowerShell: CredSSP

# Part 1: enable client mode on the local jump box
Enable-WSManCredSSP Client -DelegateComputer $remoteComputer -Force

# Part 2: enable server mode at the destination machine
Enable-WSManCredSSP Server

# Part 3: execute WinRM command with CredSSP
$credentials = Get-Credential
Invoke-Command -ComputerName $remoteComputer -ScriptBlock {ping localhost} -Authentication CredSSP

Leave a Reply

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