Comments on: Building a Hyper-V Host Status Tool with PowerShell https://www.altaro.com/hyper-v/host-status-powershell/ Hyper-V guides, how-tos, tips, and expert advice for system admins and IT professionals Wed, 31 Mar 2021 06:25:03 +0000 hourly 1 By: Jeffery Hicks https://www.altaro.com/hyper-v/host-status-powershell/#comment-3775 Fri, 13 Nov 2020 21:40:00 +0000 https://www.altaro.com/hyper-v/?p=17370#comment-3775 In reply to James Golden.

Did you dot source the script file? See my comment below.

]]>
By: James Golden https://www.altaro.com/hyper-v/host-status-powershell/#comment-3604 Sat, 28 Mar 2020 22:19:00 +0000 https://www.altaro.com/hyper-v/?p=17370#comment-3604 Great script Jeffrey. Do you have any advice on why it doesn’t run for me though? I’ve tried it on several HV hosts (PS 5.1), and it doesn’t do anything. No errors at all. help get-vmhoststatus does error though. I’ve tried it with just server name as well as using the ‘-computername’ option. Still nothing.

]]>
By: Jeffery Hicks https://www.altaro.com/hyper-v/host-status-powershell/#comment-3220 Thu, 18 Apr 2019 13:59:00 +0000 https://www.altaro.com/hyper-v/?p=17370#comment-3220 In reply to Ivan Zhelev.

You need to load the function I wrote into your PowerShell session. As currently written you would need to save it to a ps1 file on your computer. Then dot source the ps1 file in your PowerShell session.

PS C:> . c:scriptsyourfile.ps1
PS C:> help get-vmhoststatus

]]>
By: Ivan Zhelev https://www.altaro.com/hyper-v/host-status-powershell/#comment-3219 Wed, 17 Apr 2019 16:28:00 +0000 https://www.altaro.com/hyper-v/?p=17370#comment-3219 PS C:> Get-VMHostStatus servername
Get-VMHostStatus : The term ‘Get-VMHostStatus’ is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
Get-VMHostStatus servername
~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (Get-VMHostStatus:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException

]]>
By: massimiliano https://www.altaro.com/hyper-v/host-status-powershell/#comment-3179 Fri, 01 Mar 2019 08:49:00 +0000 https://www.altaro.com/hyper-v/?p=17370#comment-3179 GReat Script….my compliment 🙂

]]>