Windows11 Get-Host コマンドでPowerShell ホスト情報を取得する

環境
エディション Windows 11 Pro
バージョン 22H2
システムの種類 64bit

操作方法
Get-Host コマンドは、PowerShell ホスト情報を取得します。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
PS C:\Users\user> Get-Host
Name : ConsoleHost
Version : 5.1.22621.963
InstanceId : d27238e4-8965-4454-ae26-9b276fda9853
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
PS C:\Users\user> Get-Host Name : ConsoleHost Version : 5.1.22621.963 InstanceId : d27238e4-8965-4454-ae26-9b276fda9853 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
PS C:\Users\user> Get-Host


Name             : ConsoleHost
Version          : 5.1.22621.963
InstanceId       : d27238e4-8965-4454-ae26-9b276fda9853
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

 

Windows11

Posted by arkgame