Closed bklockwood closed 8 years ago
Tentative plan:
Having read Remoting the Implicit Way, I see a few problems I would rather avoid. So I guess I will have to do something a little more involved:
I have made some progress with an approach that does not require pushing the module to remote machine and installing it there.
Currently I have Get-UpdateList working great remotely (via invoke-command, basically). But I do not have a clean way to pass its results to Install-Updates. I have not checked this code in yet!
I've tried this solution. But I need multiple cmdlets from the same module to be work properly on the remote, and to pass objects to one another via the pipeline. And this solution seems not to allow that.
Then I tried this one, which seemed perfect. But I get a ton of 'Access Denied' and I cannot see why - I'm running as local admin on both local and remote PCs.
So now I am looking into ways to simply install (or update) the module over an invoke-command session. Hopefully without setting up a fileshare to pull from.
I've discovered a possible bug in PowerShell v5. Invoke-Command does not return output from cmdlets run on v2 systems, when they were invoked from v5 systems. Report
Resolved in latest dev-branch commit
Core functions need to be remoteable. That is, if I am sitting at LocalPC, should be able to do this: