Summary: Use Windows PowerShell to find your PowerShell host.
How can I use Windows PowerShell to determine what PowerShell host is being used?
Use the Get-Host cmdlet. To get only the name of the host, use the following syntax:
(Get-Host).name
Summary: Use Windows PowerShell to find your PowerShell host.
How can I use Windows PowerShell to determine what PowerShell host is being used?
Use the Get-Host cmdlet. To get only the name of the host, use the following syntax:
(Get-Host).name