1、安装PowerCLI:管理员启动“Windows PowerShell ”分别执行(过程中全部是Y即可),自己设置路径为(D:\PowerShell\)首先:Save-Module -Name VMware.PowerCLI -Path D:\PowerShell\然后:Install-Module -Name VMware.PowerCLI
2、管理员启动“Windows PowerShell ”执行 Get-ExecutionPolicy 查看是否是“RemoteSigned”,否执行Set-ExecutionPolicyRemoteSigned
3、使用Add-ESXSoftwareDepotcommandlet同时添加 ESXi 脱机捆绑包和异步脱机捆绑包作为库。net55-r8168-offline_bundle.zip为第三方驱动包,esxi6.5-6.5_update01为esxi6.5的脱机捆绑包。执行Add-EsxSoftwareDepot E:\net55-r8168-offline_bundle.zip, E:\esxi6.5-6.5_update01.zip
4、验证异步驱动程序现在是否可用作软件包执行Get-EsxSoftwarePackage其中“net55-r8168”为添加的第三方驱动
5、列出可用的映像配置文件执行Get-EsxImageProfile
6、将异步驱动程序添加到新映像配置文件执行New-EsxImageProfile -CloneProfile ESXi-6.5.0-20170702001-standard -name CDYW_ESXi6.5a_20171010 -Vendor CDYW
7、修改新生成配置文件的权限执行Set-EsxImageProfile -Name CDYW_ESXi6.5a_20171010 -AcceptanceLevel CommunitySupported完成后,Last Modified会修改为当前时间
8、将异步驱动程序添加到新映像配置文件Add-EsxSoftwarePackage -ImageProfile CDYW_ESXi6.5a_20171010 -SoftwarePackage net55-r8168添加成功后
9、将映像配置文件导出为 ISO文件执行Export-EsxImageProfile -ImageProfile CDYW_ESXi6.5a_20171010 -ExportToISO -filepath E:\CDYW_ESXi6.5_20171010.iso