We are considering changing the -Name parameter to be the first positional parameter for all Get-* and New-* cmdlets.
The idea is that "Get-X Y" will always return the object of type X named Y.
Examples:
1. Get-VM X will return the VM named X (this is the current behavior)
2. Get-VirtualSwitch X will return the Virtual Switch named X (this is not the current behavior).
Some cmdlet behavior will need to change if we do this.
Currently Get-VirtualSwitch X will return all Virtual Switches on host X. Does anyone take advantage of this behavior? Does this behavior make more sense than the proposed change?
We would appreciate any feedback.
The idea is that "Get-X Y" will always return the object of type X named Y.
Examples:
1. Get-VM X will return the VM named X (this is the current behavior)
2. Get-VirtualSwitch X will return the Virtual Switch named X (this is not the current behavior).
Some cmdlet behavior will need to change if we do this.
Currently Get-VirtualSwitch X will return all Virtual Switches on host X. Does anyone take advantage of this behavior? Does this behavior make more sense than the proposed change?
We would appreciate any feedback.