服务器
Powershll 标签描述

在日常工作中,经常遇到Hyper-v创建虚拟机的情况。 手动创建十分繁琐且缓慢,以下是我通过Powershell创建Hyper-v虚拟机的方式。分享给大家( ̄︶ ̄) functionCreate-VM{Param([Parameter(Mandatory=$true)][string]$VMName,cancreateaVMusinganexistingVHDtemplate,ifnotcreatethenewone.$VHDPath=Fullpathcontainsfilenameandextension.$VHDPath,TempletePath,Canbeempty$BootOp...