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: Email Users with Expiring Passwords

# PasswordExpirationNotification.ps1 # Description: # This script performs the following tasks # a. Query Active…

Function to list Domain Controllers

Wuick Script: # This function runs faster than the "Get-ADDomainController -Filter *" methodfunction listControllers{$domain =…

Microsoft Dynamics – Selecting an Org

# These two functions are convenient for CRM admins to quickly gather a hosted organization…
Other project: DragonCoin.com