I recently reinstalled my MacBook Pro, and I have reinstalled most apps and settings, and I’m one of those who spends my worklife in Office 365 but using a MacBook.
It appears that the PowerShell was installed correctly (but it’s not), I ran this command called “$PSVersionTable”, and the result looked like this:
Name Value
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Darwin 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
But when I try to login to Office 365 PowerShell, I get an error called:
“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.”
Have any of you had this error, and what did you do?
When I run “Test-WSMan” - I get the following error:
“@Test-WSMan: The term ‘Test-WSMan’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.”
I then followed the guide you sent - I followed the guide to the very letter. The error is:
“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”
Did you happen to find an answer to this question? I am running into the same thing and hoped there was a resolution found that just wasn’t mentioned.
Thanks!
Hi, I too ended up here looking for an answer to this, I am not sure that WSMan is included in the MacOS version of Powershell, I will check the Linux version in a bit, what I have done as a workaround to enable me to get things done is enable SSH Server on the windows server which gives me full PowerShell in a windows environment in a terminal on my mac.
I WOULD however like to be able to run WSMan commands from my mac.
Thanks Mcbrineellis, and a huge apology for my late answer.
I ended up doing a reinstall of the OPENSSL, and that did the trick for me. I did some notes (or rather - I saved some links), that I would follow the next time I need to install PowerShell on a Mac, it was by far one of the most painfull experiences ever, and it shouldn’t be so friggin’ hard, but it was
I dont know if this will help you, but I have done a lot of digging on this in the last few days because I have been experiencing the same issue on Linux.
The short story is that there is a openssl dependency that breaks on powershell 7.2.0. If you are able to downgrade to 7.1.5 or older, it will likley work properly for you, as it has for me and others on linux. Im not sure if Mac has package pinning, but if they do thats the trick.
I still plan on researching this further as time allows, but for now I have pinned to the last working version.
Hopefully Microsoft gets their act togeather and releases a fix for this, but I wouldn’t hold my breath, based on some of the posts I have read so far. Perhaps enough users complaining and shaming them on Social Media will help to adjust their priorites.