VMware Cloud Community
DyJohnnY
Enthusiast
Enthusiast
Jump to solution

How to change guest operating system option using PowerCLI

Hi,

I want to be able to change PowerCLI guest operating system setting for a VM.

I'm sure there is a way to do it, but I did not find it easily in the API.

Thanks,

Ionut

IonutN
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You should be able to do that with the Set-VM cmdlet and the GuestId parameter.

Something like this

Get-VM MyVM | Set-VM -GuestId "windows7_64Guest"

You can find the valid values in the VirtualMachineGuestOsIdentifier enumeration.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You should be able to do that with the Set-VM cmdlet and the GuestId parameter.

Something like this

Get-VM MyVM | Set-VM -GuestId "windows7_64Guest"

You can find the valid values in the VirtualMachineGuestOsIdentifier enumeration.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
DyJohnnY
Enthusiast
Enthusiast
Jump to solution

Oh boy, was that easy? must have been really tired.

Thanks LucD

IonutN
Reply
0 Kudos