$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $UserCredential -Authentication Basic -AllowRedirection
New-PSSession : This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.
At line:1 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.PowerShell.Commands.NewPSSessionCommand
Fresh installation on my macOS Sierra 10.12.6 without any previous versions.
powershell-6.0.0-beta.5-osx.10.12-x64.pkg
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.5
OS Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/REL...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Do you install psl-omi-provider? https://github.com/PowerShell/PowerShell/blob/b25b8df7cae323c376fe4770882ebbfd805fdbf4/docs/KNOWNISSUES.md#remoting-support
Doesn't look like this is for macOS. Is there an install package or some way to install this on a mac?
Not yet. 馃槙 Today you should use OpenSSH based remoting.
Hi, same issue on a macOS 10.13 with fresh install. Is openwsman a supported transport?
Just started a new Nano Server instance in AWS and this seems to be the only way to access the server... any suggestion on how to achieve it from MacOS?
thanks!
Please see remoting docs
https://github.com/PowerShell/psl-omi-provider (no MacOS)
https://github.com/PowerShell/PowerShell/blob/master/demos/SSHRemoting/README.md
That means that the Nano server needs to be running the ssh server, and that is not enabled by default:
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/connecting_to_windows_instance.html#connecting-nano
This could be related to the issues I was seeing that are documented on #4029
As it stands, PowerShell 6.0.0-rc requires the use of OpenSSL libraries installed by Homebrew
Installing PowerShell v6.0.4 on OSX 10.13.3 fixed the problem for me.
Install Link:
https://github.com/PowerShell/PowerShell/releases/download/v6.0.4/powershell-6.0.4-osx.10.12-x64.pkg
@JMOSSAU @kai-h Can you confirm?
@iSazonov - Yes, 6.0.4 seems to work correctly.
PS /Users/kai> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.4
PSEdition Core
GitCommitId v6.0.4
OS Darwin 17.7.0 Darwin Kernel Version 17.7.0: T...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS /Users/kai> office365.ps1
PowerShell credential request
Enter your credentials.
User: [email protected]
Password for user [email protected]: ***************
WARNING: The names of some imported commands from the module 'tmp_fhijji2e.j4w' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb. ModuleType Version Name ExportedCommands ---------- ------- ---- ----------------
Script 1.0 tmp_fhijji2e.j4w {Add-AvailabilityA...
PS /Users/kai>
Oh, and I should include the contents of the office365.ps1 script I'm running:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Will whatever works for remote sessions to Office 365 in 6.0.4 be brought forward into 6.1?
Yes, you can test with latest nightly builds.