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: Reset Active Directory Server

Step 0: # Ensure that AD management module is available for PS Sessionif (!(get-module -name…

Sendmail Batch File

1. Download: 2. Place it in C:\Windows\System32   sendmail.bat --------------------------- senditquiet.exe -s smtp.gmail.com -port 587…

How to Restart Domino Services without Reboot

--------------Restart_Domino.bat------------------------------------------------------net stop "Lotus Domino Server (LotusDominoData)"c:\bats\pulist | findstr /I /C:"nadminp.exe" >c:\bats\pid.lstc:\bats\pulist | findstr /I /C:"naldaemn.exe"…