{"id":804,"date":"2014-08-19T11:59:00","date_gmt":"2014-08-19T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2014\/08\/19\/powertip-mini-scripting-games-2014-answer-2\/"},"modified":"2014-08-19T11:59:00","modified_gmt":"2014-08-19T11:59:00","slug":"powertip-mini-scripting-games-2014-answer-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-mini-scripting-games-2014-answer-2\/","title":{"rendered":"PowerTip: Mini-Scripting Games 2014 Answer 2"},"content":{"rendered":"<p><b style=\"font-size:12px\">Summary<\/b><span style=\"font-size:12px\">: Here is the answer to the second question in Mini-Scripting Games&nbsp;2014.<\/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;On your laptop running Windows 8.1, you are running Hyper-V. <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You have heard that there are cmdlets that let you manage this. <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You open Windows PowerShell and type the following command:<\/p>\n<p style=\"margin-left:120px\">Get-VM<\/p>\n<p style=\"margin-left:30px\">Absolutely nothing comes back. But you know you have several virtual machines on your computer. <br \/>Why does nothing return?<\/p>\n<p><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 Hyper-V cmdlets require Admin rights. Therefore, you need to open the Windows PowerShell console <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;with Admin rights. Right-click the icon and select &ldquo;Run As Administrator&rdquo; from the action menu. <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Unfortunately, these cmdlets do not return any error messages if you try to run them without proper rights.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/7610.Dr.ScriptoForTips.jpg\" alt=\" \" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Here is the answer to the second question in Mini-Scripting Games&nbsp;2014. &nbsp;On your laptop running Windows 8.1, you are running Hyper-V. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You have heard that there are cmdlets that let you manage this. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You open Windows PowerShell and type the following command: Get-VM Absolutely [&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-804","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: Here is the answer to the second question in Mini-Scripting Games&nbsp;2014. &nbsp;On your laptop running Windows 8.1, you are running Hyper-V. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You have heard that there are cmdlets that let you manage this. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;You open Windows PowerShell and type the following command: Get-VM Absolutely [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/804","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=804"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/804\/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=804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}