PowerTip: Use PowerShell to Determine Host

The Scripting Guys

Dr Scripto

Summary: Use Windows PowerShell to find your PowerShell host.

Hey, Scripting Guy! Question How can I use Windows PowerShell to determine what PowerShell host is being used?

Hey, Scripting Guy! Answer Use the Get-Host cmdlet. To get only the name of the host, use the following syntax:

(Get-Host).name

The Scripting Guys
Dr Scripto

Follow Dr Scripto   

No Comments.