vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

Issues with the set-secureboot function #81

Open ccgutz opened 7 years ago

ccgutz commented 7 years ago

When I use the "get-vm $vm | set-secureboot -enabled" function I get a bunch of errors:


Exception calling "ReconfigVM_Task" with "1" argument(s): " Unexpected element tag "efiSecureBootEnabled" seen while parsing serialized DataObject of type vim.vm.BootOptions at line 1, column 257 while parsing property "bootOptions" of static type VirtualMachineBootOptions while parsing serialized DataObject of type vim.vm.ConfigSpec at line 1, column 251 while parsing call information for method ReconfigVM_Task at line 1, column 171 while parsing SOAP body at line 1, column 64 while parsing SOAP envelope at line 1, column 0 while parsing HTTP request for method reconfigure on object of type vim.VirtualMachine at line 1, column 0" At line:62 char:5

Get-Task : 5/2/2017 10:40:11 AM Get-Task The identifier Task- resulted in no objects.
At line:63 char:14

Can someone help me? Thanks.

Charlie

mtelvers commented 6 years ago

Hi Charlie, please can you confirm which version of vSphere you are running these functions against? They require vSphere 6.5. I can reproduce your error by running against vSphere 6.0.

Mark