mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-28 05:07:23 +00:00
c
This commit is contained in:
parent
92e8095da3
commit
262df20a51
@ -832,7 +832,7 @@ The second Windows Server 2012 R2 VHD needs to be expanded in size from 40GB to
|
||||
Restart-Computer
|
||||
</pre>
|
||||
|
||||
>If you do not see the script pane, click **View** and then click **Show Script Pane Top**.
|
||||
>If you do not see the script pane, click **View** and verify **Show Script Pane Top** is enabled. Click **File** and then click **New**.
|
||||
|
||||
See the following example:
|
||||
|
||||
@ -845,7 +845,9 @@ The second Windows Server 2012 R2 VHD needs to be expanded in size from 40GB to
|
||||
Copy-VMFile "PC1" –SourcePath "C:\VHD\pc1.ps1" –DestinationPath "C:\pc1.ps1" –CreateFullPath –FileSource Host
|
||||
</pre>
|
||||
|
||||
>In order for this command to work properly, PC1 must be running the vmicguestinterface (Hyper-V Guest Service Interface) service. If this service is not installed, you can try updating integration services on the VM. This can be done by mounting the Hyper-V Integration Services Setup (vmguest.iso), which is located in C:\Windows\System32 on Windows Server operating systems that are running the Hyper-V role service. Otherwise, just create the file c:\pc1.ps1 on the VM by typing the commands into this file manually. Be sure to save the file as a Windows PowerShell script file with the .ps1 extension and not as a text (.txt) file.
|
||||
>In order for this command to work properly, PC1 must be running the vmicguestinterface (Hyper-V Guest Service Interface) service. If this service is not installed, you can try updating integration services on the VM. This can be done by mounting the Hyper-V Integration Services Setup (vmguest.iso), which is located in C:\Windows\System32 on Windows Server operating systems that are running the Hyper-V role service.
|
||||
|
||||
If the copy-vmfile command does not work and you cannot properly upgrade integration services on PC1, then create the file c:\pc1.ps1 on the VM by typing the commands into this file manually. The copy-vmfile command is only used in this procedure as a demonstration. After typing the script file manually, be sure to save the file as a Windows PowerShell script file with the .ps1 extension and not as a text (.txt) file.
|
||||
|
||||
21. On PC1, type the following commands at an elevated Windows PowerShell prompt:
|
||||
|
||||
@ -960,7 +962,7 @@ The second Windows Server 2012 R2 VHD needs to be expanded in size from 40GB to
|
||||
36. Lastly, because the client computer has different hardware after copying it to a VM, its Windows activation will be invalidated and you might receive a message that you must activate Windows in 3 days. To extend this period to 30 days, type the following commands at an elevated Windows PowerShell prompt on PC1:
|
||||
|
||||
<pre style="overflow-y: visible">
|
||||
runas /noprofile /env /user:administrator@contoso.com "cmd slmgr -rearm"
|
||||
runas /noprofile /env /user:administrator@contoso.com "cmd /c slmgr -rearm"
|
||||
Restart-Computer
|
||||
</pre>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user