第一步:制作模板VHDX文件(略); 第二步:制作初始化系统脚本(自动设置IP、GW等); 将以下2个脚本放置到模板VHDX中的C:\Windows\Setup\Scripts目录下: 第1个脚本:FirstRun.ps1 #获取计算机名称 $VMname=hostname #根据计算机名称获取IP地址后6位 [int]$IP1=$VMname.Substring($VMname.Lengt
Write-Host -NoNewline -ForegroundColor Magenta '请输入要创建的虚机名称(如:VLNX******)' [String]$VM_Name = Read-Host Write-Host -NoNewline -ForegroundColor Magenta 
51CTO博客开发王春海的博客微软技术专题ZJS的微软桌面虚拟化韩立刚
Copyright © 2005-2023 51CTO.COM 版权所有 京ICP证060544号