PowerTip: Use PowerShell to Determine Host

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:


Comments (1)

  1. Brad_Voris says:

    I just prefer Hostname but it all works the same 🙂

Skip to main content