VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Streamline properties between Get/Set/New

Since Powershell v3, we are allowed to splat paramters which can be very useful, espcially when you dymancaly build your splat out of your variables

e.g. NICTeamingPolicy

Get

Name MemberType Definition
---- ---------- ----------
ActiveNic Property string[] ActiveNic {get;}
StandbyNic Property string[] StandbyNic {get;}
UnusedNic Property string[] UnusedNic {get;}
 
Set
 
MakeNicActive
MakeNicStandy

MakeNicUnused

PS: The disparity could be fix with some code, but wouldn't it make it more logic if they machted between commands ? :)

  • Guest
  • Sep 16 2018
  • Looking for Feedback
  • Attach files