I have two machines A and B.
both have: psremoting enabled, credssp enables as both client and server.
from machine A I can create a new pssession to B with -Authentication credssp
from machine B I can create a new pssession to A with -Authentication credssp
Everything is working fine at this point. My problem is that I have a script that will run on computer A and start a new pssession on both A and B and move some files around (sharepoint stuffs that's a totally different matter). The script I have written was originally run from an external computer and so it has code that remotes into both systems. But now the script is being run from computer A and for the life of me I cannot get credssp to work on localhost.
I have tried setting -delegatecomputer
(for enable-wsmancredssp -role client) and -computername
(for new-pssession -authentication credssp) to any of .
, localhost
, or 127.0.0.1
. None of those has allowed me to start a new pssession from computer A back to computer A.
So the core of my question is:
- Can you delegate credssp credentials to localhost?
- if not is there a way to create a pssession that will allow me to still log in to sharepoint within that session (i.e. pass credentials further)?
- Worst case: I'll have to rewrite my script.