VMware Cloud Community
leitsuhsu
Contributor
Contributor

Set-securitypolicy for Mac address changes

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

Reply
0 Kudos
5 Replies
LucD
Leadership
Leadership

Which PowerCLI build are you using ?

Do a

Get-PowerCLIVersion

These cmdlets were introduced in PowerCLI 5.5 Release 2 build 1671586


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

Reply
0 Kudos
leitsuhsu
Contributor
Contributor


5.1 release 2 build 1012425

Reply
0 Kudos
LucD
Leadership
Leadership

Please upgrade to the latest build to have those cmdlets.


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

Reply
0 Kudos
leitsuhsu
Contributor
Contributor

Unfortunately I cant upgrade powercli. Is there a way of disabling MAC address changes using 5.0 release 2 Powercli?

Reply
0 Kudos
LucD
Leadership
Leadership

Have a look at dvSwitch scripting – Part 2 – dvPortgroup


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

Reply
0 Kudos