Posted On April 26, 2021

PowerShell: CredSSP

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: CredSSP
# Part 1: enable client mode on the local jump box
$remoteComputer='SHERVER009'
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 *

Related Post

PowerShell: Add Windows TrustedHosts Remotely

<# AddTrustedHostsRemote.ps1Solves this problem:enter-pssession : Connecting to remote server REMOTESHERVER failed with the following error…

PowerShell: An Exercise in Calculating Checksums

$out = new-object byte[] 1073741824; #1GB(new-object Random).NextBytes($out);[IO.File]::WriteAllBytes($dummyFile, $out);Measure-command{$hash=jacksum -a crc8 -x $dummyFile}write-host $hash# New ServerPS…

WordPress Custom CSS for Tables

WordPress themes can be customized, and one of the common practice is to add CSS…