Closed adilio closed 5 years ago
I've just pushed the changes to master. Can you pull a copy from GitHub and test? I'm now replicating ALL parameters from Invoke-Command.
It works!
Tested on:
Side-note: I did get the error:
Invoke-CommandAs : A parameter cannot be found that matches parameter name 'RunElevated'.
Works fine when I remove that parameter. Is -RunElevated
now deprecated, or just not needed with -AsSystem
?
Yeah, Im running all commands as elevated. :/
No sure if that parameter is ever NOT going to be used.
What are your thoughts?
Makes sense to me, running as elevated is kinda the whole point of the module.
LGTM!
In our Production environment, we have set
winrm quickconfig -transport:https
, in order to only enable the HTTPS WSMan listener (cert-based transport).As such, when running,
Invoke-Command
, we must specify the-UseSSL
parameter.It would be awesome if we could also use a similar
-UseSSL
parameter inInvoke-CommandAs
, as well.Currently, we can do the following:
This would just mean one less step on instantiating the PSSession.
Merci beaucoup!