Skip to content

Instantly share code, notes, and snippets.

View bgshacklett's full-sized avatar

Brian G. Shacklett bgshacklett

View GitHub Profile
$worldTab = @{}
$esxcli = Get-EsxCli
$esxcli.vm.process.list() | %{
$worldTab.Add($_.WorldID,$_.DisplayName)
}
@bgshacklett
bgshacklett / gist:8529451
Created January 20, 2014 21:20
Troubleshooting PS Aliases and Pipeline bindings
function Test-AliasBinding
{
[CmdletBinding()]
param(
[Alias("DNSHostName")]
[Parameter(
Mandatory=$True,
#ValueFromPipeline = $True,
ValueFromPipelineByPropertyName=$True