3 ms·
The only hassle I've had is trying to use external resources while already in a session. e.g. enter-pssession "someserver"; copy-item "\\netshare" . In thins c
by Already__Taken 11y ago
The only hassle I've had is trying to use external resources while already in a session. e.g. enter-pssession "someserver"; copy-item "\\netshare" .
In thins case you need to further enable CredSSP on your domain to allow passing on your auth credentials through the session to the third machine.
Any cmdlet I've seen that doesn't take a session (wmi or cim) I've just wrapped up into invoke-expression -computername "commands..."
Ps remoting lets me do great things like import module from servers to clients that I don't have remote tools installed on. e.eg. $session = new-cimInstance "domainController"; import-module activedirectory -sessions $session