{"id":833,"date":"2014-02-14T17:49:43","date_gmt":"2014-02-14T15:49:43","guid":{"rendered":"http:\/\/marwin.e-blog.cz\/?p=833"},"modified":"2014-05-06T15:55:09","modified_gmt":"2014-05-06T13:55:09","slug":"hyper-v-jak-jednoduse-zkopirovat-file-z-host-serveru-na-quest-vm-how-simple-copy-file-from-host-srv-to-quest-vm","status":"publish","type":"post","link":"https:\/\/svobodma.cz\/?p=833","title":{"rendered":"Hyper-V: Jak jednodu\u0161e zkop\u00edrovat file z Host serveru na Quest VM \/ How simple copy file from Host srv to Quest VM"},"content":{"rendered":"<p>Pro je\u0161t\u011b jednodu\u0161\u0161\u00ed zkop\u00edrov\u00e1n\u00ed jsem poupravil command do scriptu. \u00a0Nejprve je v\u0161ak nutn\u00e9 m\u00edt na quest VM zapnutou podporu &#8222;Quest Services&#8220;, kter\u00e1 je sou\u010d\u00e1st\u00ed Integration Services. V nastaven\u00ed VM viz. obr za\u0161krt\u011bte posledn\u00ed pol\u00ed\u010dko.<\/p>\n<p>C\u00edlov\u00e1 slo\u017eka nemus\u00ed na VM Questu existovat, o to se star\u00e1 parametr \u00a0&#8222;FileSource HOST -CreateFullPath&#8220;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/marwin.e-blog.cz\/?attachment_id=834\" rel=\"attachment wp-att-834\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-834 alignleft\" alt=\"copz file HV\" src=\"http:\/\/marwin.e-blog.cz\/wp-content\/uploads\/copz-file-HV.png\" width=\"432\" height=\"392\" \/><\/a><\/p>\n<p>Samotn\u00fd p\u0159\u00edkaz : <strong>Copy-VMFile<\/strong><\/p>\n<p>$VMNAME = read-Host &#8222;Insert Virtual Machine Name, you can see in Hyper-V Manager&#8220;<br \/>\n$SP = read-Host &#8222;Source Path + Name of file&#8220;<br \/>\n$DP = read-Host &#8222;Destination Path + Name of file&#8220;<br \/>\n$run = Copy-VMFile -VMName $VMNAME -SourcePath $SP -DestinationPath $DP -FileSource HOST -CreateFullPath<br \/>\nif ($?)<br \/>\n{<br \/>\n$run<br \/>\nWrite-Host &#8222;Done&#8220;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\nWrite-Host &#8222;Failed&#8220;<br \/>\n}<br \/>\nsleep 5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pro je\u0161t\u011b jednodu\u0161\u0161\u00ed zkop\u00edrov\u00e1n\u00ed jsem poupravil command do scriptu. \u00a0Nejprve je v\u0161ak nutn\u00e9 m\u00edt na quest VM zapnutou podporu &#8222;Quest Services&#8220;, kter\u00e1 je sou\u010d\u00e1st\u00ed Integration Services. V nastaven\u00ed VM viz. obr za\u0161krt\u011bte posledn\u00ed pol\u00ed\u010dko. C\u00edlov\u00e1 slo\u017eka nemus\u00ed na VM Questu &hellip; <a href=\"https:\/\/svobodma.cz\/?p=833\">Cel\u00fd p\u0159\u00edsp\u011bvek <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=833"}],"version-history":[{"count":12,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions"}],"predecessor-version":[{"id":1010,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/833\/revisions\/1010"}],"wp:attachment":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}