What do you do if you want to copy your vhd’s from a share to your storage on your Hyper-V server?
I guess cut and paste…
What if you don’t want to get your fingers all sticky from the GUI?
Lets try some powershell:
First lets create the directory so wh acn have a copy of the vhd’s where we want it. Lets create a folder in the c:\ drive called VHD-staging
Great now we have a directory.
Now lets connect to the share:
Now we have a connection to the share on the P drive.
The last step is to recursively copy the vhd’s and any configuration files, snapshots etc.
There you have it
Quick steps to create a folder, connect to a share and copy the contents.
Thanks for your time, and thanks for hanging out with me here.
from Rat’s Citrix Blog