Hi
Any idea why this simple command doesnt work?!
get-virtualswitch -Name "vSwitch0" | Get-SecurityPolicy | Set-SecurityPolicy -MacChanges $false
The error message says Get-securitypolicy command doesnt exist
Which PowerCLI build are you using ?
Do a
Get-PowerCLIVersion
These cmdlets were introduced in PowerCLI 5.5 Release 2 build 1671586
5.1 release 2 build 1012425
Please upgrade to the latest build to have those cmdlets.
Unfortunately I cant upgrade powercli. Is there a way of disabling MAC address changes using 5.0 release 2 Powercli?
Have a look at dvSwitch scripting – Part 2 – dvPortgroup