在离线文档中查找 guestid ?

在离线文档中查找 guestid ?

最近有一个小问题一直困扰着我。

我正在使用 PowerCLI 创建一个新的 VM,并且我想使用 -guestId 参数来指定客户操作系统。

是否有任何内置文档列出所有可用的访客 ID?如果文档中可以离线提供这些内容,那么比每次打开浏览器查找所需内容要快得多、容易得多。

我已经尝试过get-help new-vm -detailed,但是文档将我引导到一个网站。

谢谢。

答案1

好的,找到了!

[System.Enum]::GetNames([VMware.Vim.VirtualMachineGuestOsIdentifier])

输出如下:

dosGuest
win31Guest
win95Guest
win98Guest
winMeGuest
winNTGuest
win2000ProGuest
win2000ServGuest
win2000AdvServGuest
winXPHomeGuest
winXPProGuest
winXPPro64Guest
winNetWebGuest
winNetStandardGuest
winNetEnterpriseGuest
winNetDatacenterGuest
winNetBusinessGuest
winNetStandard64Guest
winNetEnterprise64Guest
winLonghornGuest
winLonghorn64Guest
winNetDatacenter64Guest
winVistaGuest
winVista64Guest
windows7Guest
windows7_64Guest
windows7Server64Guest
windows8Guest
windows8_64Guest
windows8Server64Guest
freebsdGuest
freebsd64Guest
redhatGuest
rhel2Guest
rhel3Guest
rhel3_64Guest
rhel4Guest
rhel4_64Guest
rhel5Guest
rhel5_64Guest
rhel6Guest
rhel6_64Guest
centosGuest
centos64Guest
oracleLinuxGuest
oracleLinux64Guest
suseGuest
suse64Guest
slesGuest
sles64Guest
sles10Guest
sles10_64Guest
sles11Guest
sles11_64Guest
nld9Guest
oesGuest
sjdsGuest
mandrivaGuest
mandriva64Guest
turboLinuxGuest
turboLinux64Guest
ubuntuGuest
ubuntu64Guest
debian4Guest
debian4_64Guest
debian5Guest
debian5_64Guest
debian6Guest
debian6_64Guest
asianux3Guest
asianux3_64Guest
asianux4Guest
asianux4_64Guest
opensuseGuest
opensuse64Guest
fedoraGuest
fedora64Guest
other24xLinuxGuest
other26xLinuxGuest
otherLinuxGuest
other24xLinux64Guest
other26xLinux64Guest
otherLinux64Guest
solaris6Guest
solaris7Guest
solaris8Guest
solaris9Guest
solaris10Guest
solaris10_64Guest
solaris11_64Guest
os2Guest
eComStationGuest
eComStation2Guest
netware4Guest
netware5Guest
netware6Guest
openServer5Guest
openServer6Guest
unixWare7Guest
darwinGuest
darwin64Guest
darwin10Guest
darwin10_64Guest
darwin11Guest
darwin11_64Guest
vmkernelGuest
vmkernel5Guest
otherGuest
otherGuest64

相关内容