{"id":431,"date":"2014-10-29T11:59:00","date_gmt":"2014-10-29T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2014\/10\/29\/powertip-troubleshoot-get-vm-cmdlet\/"},"modified":"2014-10-29T11:59:00","modified_gmt":"2014-10-29T11:59:00","slug":"powertip-troubleshoot-get-vm-cmdlet","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-troubleshoot-get-vm-cmdlet\/","title":{"rendered":"PowerTip: Troubleshoot Get-VM Cmdlet"},"content":{"rendered":"<p><b style=\"font-size:12px\">Summary<\/b><span style=\"font-size:12px\">: Learn about a quick troubleshooting tip for the&nbsp;<\/span><b style=\"font-size:12px\">Get-VM<\/b><span style=\"font-size:12px\">&nbsp;cmdlet.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\" \/>&nbsp;I am using the&nbsp;<b>Get-VM<\/b>&nbsp;cmdlet to find information about virtual machines on my local laptop, but it does not <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;appear to do anything. What could be the matter?<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\" \/>&nbsp;The&nbsp;<b>Get-VM<\/b>&nbsp;cmdlet must be run with Admin permissions. But unfortunately, it does not tell you that when <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;run in a non-elevated Windows PowerShell console. To launch the Windows PowerShell console with <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Admin permissions, right-click the Windows PowerShell console icon and select&nbsp;<b>Run as Administrator<\/b>&nbsp;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from the action menu.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\" \" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Learn about a quick troubleshooting tip for the&nbsp;Get-VM&nbsp;cmdlet. &nbsp;I am using the&nbsp;Get-VM&nbsp;cmdlet to find information about virtual machines on my local laptop, but it does not &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;appear to do anything. What could be the matter? &nbsp;The&nbsp;Get-VM&nbsp;cmdlet must be run with Admin permissions. But unfortunately, it does not tell you [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[356,3,45],"class_list":["post-431","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Learn about a quick troubleshooting tip for the&nbsp;Get-VM&nbsp;cmdlet. &nbsp;I am using the&nbsp;Get-VM&nbsp;cmdlet to find information about virtual machines on my local laptop, but it does not &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;appear to do anything. What could be the matter? &nbsp;The&nbsp;Get-VM&nbsp;cmdlet must be run with Admin permissions. But unfortunately, it does not tell you [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=431"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/431\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}