Setting up CredSSP properly for powershell multi-hop issue
I've encountering the double-hop issue with a script I'm writing. Issue
right now is that when I get to New-PSSession on the computer remoting in.
I get the following error:
Image Link if its too hard to read
Here's the code that runs on the original server:
$password = ConvertTo-SecureString "password" -AsPlainText -Force
$cred= New-Object System.Management.Automation.PSCredential
("domain\admin", $CApassword)
$sesh = new-pssession -computername "MSSCA" -credential $CAcred
-Authentication CredSSP
This $sesh variable comes back null and throws the error above.
Server executing powershell script/remoting is set to delegate fresh
credentials to mssca, and likewise mssca is set to receive.
Any ideas how I can fix this?
No comments:
Post a Comment