February 2019
Intermediate to advanced
626 pages
15h 51m
English
Microsoft provides instructions for installing PowerShell on Linux; these should be followed before attempting to configure remoting: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6.
Once installed, it is possible to make PowerShell the default shell. This is optional and does not affect remoting. First, check that PowerShell is listed in the shells file:
Get-Content /etc/shells # Use cat or less in Bash
The native chsh (change shell) command can be used to change the default shell for the current user, as shown in the following example:
chsh -s /usr/bin/pwsh
To configure remoting using WSMan, the OMI and PSRP packages must be installed. The following example ...
Read now
Unlock full access