{"id":452,"date":"2018-11-13T11:44:21","date_gmt":"2018-11-13T02:44:21","guid":{"rendered":"https:\/\/eng.miteel.net\/?page_id=452"},"modified":"2018-11-13T12:50:34","modified_gmt":"2018-11-13T03:50:34","slug":"%ef%be%8e%ef%bd%bd%ef%be%84os%e3%81%a8%e5%85%b1%e3%81%ab%ef%bd%bc%ef%bd%ac%ef%bd%af%ef%be%84%ef%be%80%ef%be%9e%ef%bd%b3%ef%be%9d","status":"publish","type":"page","link":"https:\/\/eng.miteel.net\/?page_id=452","title":{"rendered":"\uff8e\uff7d\uff84OS\u3068\u5171\u306b\uff7c\uff6c\uff6f\uff84\uff80\uff9e\uff73\uff9d"},"content":{"rendered":"<p>\u30db\u30b9\u30c8\uff2f\uff33\u304c\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u6642\u306b\u3001\u52d5\u4f5c\u4e2d\u306e\u30b2\u30b9\u30c8\uff2f\uff33\u304c\u5f37\u5236\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u306e\u306f\u3001\u4e71\u66b4\u3059\u304e\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u52a0\u3048\u308b<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;ExtraDataItem name=&#8221;GUI\/DefaultCloseAction&#8221; value=&#8221;shutdown&#8221;\/&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u30db\u30b9\u30c8\uff2f\uff33\u304c\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3055\u308c\u308b\u969b\u306b\u3001\u30b2\u30b9\u30c8\uff2f\uff33\u3082\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3055\u308c\u308b<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3>1. Go to startup folder<\/h3>\n<p>Navigate to\u00a0<code>C:\\Users\\username\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup<\/code>\u00a0(note, choose your own user). Any files or shortcuts here will be run when Windows loads your user account.<\/p>\n<h3>2. Create new text file<\/h3>\n<p>Create a\u00a0<em>text<\/em>\u00a0file within the\u00a0<code>Startup<\/code>\u00a0directory (step 1 above), then rename the file to\u00a0<code>Whatever-you-want.bat<\/code>. Maybe you\u2019ll want to make it the name of your VM, but ensure the file type changes to a\u00a0<code>.bat<\/code>\u00a0file.<\/p>\n<h3>3. Edit bat file<\/h3>\n<p>Open the\u00a0<code>.bat<\/code>\u00a0file in\u00a0<code>Notepad<\/code>\u00a0and put this inside:<\/p>\n<pre class=\"highlight plaintext\"><code><\/code><\/pre>\n<table class=\"rouge-table\">\n<tbody>\n<tr>\n<td class=\"rouge-gutter gl\">\n<pre class=\"lineno\">1\r\n<\/pre>\n<\/td>\n<td class=\"rouge-code\">\n<pre>\"C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe\" startvm \"NameOfYourVM\" --type \"headless\"\r\n<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"highlight plaintext\">\r\n\r\n<\/pre>\n<pre>$ VBoxManage list vms\r\n....\r\n\"WindowsXP\" {vmid}\r\n$ VBoxHeadless --startvm vmid -vrdp on<\/pre>\n<pre class=\"highlight plaintext\"><code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u30db\u30b9\u30c8\uff2f\uff33\u304c\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u6642\u306b\u3001\u52d5\u4f5c\u4e2d\u306e\u30b2\u30b9\u30c8\uff2f\uff33\u304c\u5f37\u5236\u7d42\u4e86\u3057\u3066\u3057\u307e\u3046\u306e\u306f\u3001\u4e71\u66b4\u3059\u304e\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u52a0\u3048\u308b &nbsp; &lt;ExtraDataItem name=&#8221;GUI\/DefaultCloseA &hellip; <a href=\"https:\/\/eng.miteel.net\/?page_id=452\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\uff8e\uff7d\uff84OS\u3068\u5171\u306b\uff7c\uff6c\uff6f\uff84\uff80\uff9e\uff73\uff9d<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":441,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-452","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=452"}],"version-history":[{"count":4,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/452\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/452\/revisions\/456"}],"up":[{"embeddable":true,"href":"https:\/\/eng.miteel.net\/index.php?rest_route=\/wp\/v2\/pages\/441"}],"wp:attachment":[{"href":"https:\/\/eng.miteel.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}