Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Support for non-Windows OS & target host in Environment variable #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhoneill
Copy link

The changes I've made are to allow the module to run in PowerShell core 6.1 on non-Windows OSes - the original code wasn't designed to connect to an SSH session.
The remote session is PowerShell core 6.1, and it is possible to load the module in that session, import a Windows PowerShell 5.1 module and then use Import-PSSession from Linux to access a 5.1 module with a "double hop".

I've tested the changes in the Linux subsystem on Window 10 only, and more extensive testing on "real" Linux and Mac would be ideal.

In some environments it would be useful to specify the Server hosting the compatibility session as an environment variable so I've added that.

The existing Pester tests pass on Windows; I haven't added any new tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant