Linux で、powershell
- pwsh ( 起動コマンド )
- インストール ( ubuntu 18.04 )
# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Ubuntu repository 18.04 を指定
sudo curl -o /etc/apt/sources.list.d/microsoft.list \ https://packages.microsoft.com/config/ubuntu/18.04/prod.list
# Update the list of products
sudo -E apt-get update
# Install PowerShell
sudo -E apt-get install -y powershell
powershell で、remote login
-
- Linux の powershell から、windows へのリモートログインは、WinRM ではできないらしい
- https://github.com/PowerShell/PowerShell/issues/6647
- Basic 認証で行う windows 側で対応必要
- https://www.vwnet.jp/Windows/PowerShell/EnableWinRMFromLinux.htm
Powershell コマンド備忘
- $PSVersionTable ( バージョンの確認 $が最初に必要)