PowerTip: Use PowerShell to Determine Host

Doctor 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

0 comments

Comments are closed. Login to edit/delete your existing comments