Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

bulk creation of hyper-v vms encounters errors

$
0
0

Hello Guys

the problem is self-explanatory so i only put the screen shot here:

 

 

 

 

 

import-csv D:\2.csv |
ForEach-Object { new-vm-Name$_.VMname-MemoryStartupByte$_.memory-Path'c:\testfolder'-NewVHDPath$_.myvhdpath-NewVHDSizeBytes$_.myvhdsize }

i usually search before asking problems but here i really don't know what to search about this certain situation.

i guest there must be something related to variables in powershell !

thanks in advanced


Viewing all articles
Browse latest Browse all 6937

Trending Articles