{"id":3213,"date":"2014-06-20T13:06:40","date_gmt":"2014-06-20T05:06:40","guid":{"rendered":"http:\/\/rmohan.com\/?p=3213"},"modified":"2014-06-20T13:07:41","modified_gmt":"2014-06-20T05:07:41","slug":"powershell-to-shutdown-windows-server-2012","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3213","title":{"rendered":"PowerShell to Shutdown Windows Server 2012"},"content":{"rendered":"<p>Launch PowerShell, type stop then tab, you should see Stop-Computer.\u00a0 If this flashy technique does not work, then just type this one simple command long-hand:<\/p>\n<p># PowerShell command to shutdown Windows Server 2012<\/p>\n<p><strong>Stop-Computer<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>shutdown utility. However, there is a little known switch to bring-up a GUI version of this command line utility.<\/p>\n<p># GUI method of using the built-in Shutdown command<\/p>\n<p>Shutdown -i<\/p>\n<p>Note: If you are going to use any of the Shutdown commands, the first switch to learn is -a.\u00a0 Shutdown -a meaning abort!<\/p>\n<p>Pure Shutdown<\/p>\n<p>I like to operate shutdown from within PowerShell.<br \/>\n# Shutdown the local Windows Server 2012 machine<\/p>\n<p>Shutdown -s -m \\\\localhost<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Launch PowerShell, type stop then tab, you should see Stop-Computer. If this flashy technique does not work, then just type this one simple command long-hand:<\/p>\n<p># PowerShell command to shutdown Windows Server 2012<\/p>\n<p>Stop-Computer<\/p>\n<p>&nbsp;<\/p>\n<p>shutdown utility. However, there is a little known switch to bring-up a GUI version of this command line utility.<\/p>\n<p># [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3213"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3213"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3213\/revisions"}],"predecessor-version":[{"id":3215,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3213\/revisions\/3215"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}