From the help file:
Set-VMResourceConfiguration -Configuration $conf -CpuAffinity ([http://VMware.VimAutomation.Types.CpuAffinity|http://VMware.VimAutomation.Types.CpuAffinity]::Cpu1 -bor [http://VMware.VimAutomation.Types.CpuAffinity|http://VMware.VimAutomation.Types.CpuAffinity]::Cpu2)
I'm really surprised that you guys are making the end user do the bitmasking here. Wouldn't it make more sense to have it accept an array of strings, and just figure out the math internally?
[vExpert|http://www.vmware.com/communities/vexpert/], PowerShell MVP, VI Toolkit forum moderator
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org
My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker.
I'm @halr9000