cloudsoft / winrm4j

Apache License 2.0
93 stars 53 forks source link

Support the usage of PowerShell Session Configuration #127

Open aboudzz opened 4 years ago

aboudzz commented 4 years ago

Suppose we have a registered PowerShell session config in a SERVER:

[SERVER] PS C:\> Register-PSSessionConfiguration -Name DemoSessionConfig

In PowerShell remoting we can specify the session configuration that is used for the interactive session as follows:

[REMOTE] PS C:\> Enter-PSSession -ComputerName SERVER -ConfigurationName DemoSessionConfig 
                                 -Credential $CRED -Authentication $AUTH

It would be useful if the usage of PowerShell Session Configuration is supported in winrm4j.