こんにちは、今日はPowerShellでホストプログラムを取得するコマンドレットGet-Hostの使い方についてまとめていきます。
確認環境
PSVersion 5.1.18362.1110
Get-Hostの使い方
コマンドを実行すると以下のようにホストの情報が表示されます。
1 2 3 4 5 6 7 8 9 10 11 12 13 | PS C:\Users\santerabyte> Get-Host Name : ConsoleHost Version : 5.1.18362.1171 InstanceId : XXXXXXXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : ja-JP CurrentUICulture : ja-JP PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace |