Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created Jun 20, 2020
Embed
What would you like to do?
Różnica między -Filter "" i -Filter {}
$hash = @{
Imię = 'Bartek'
}
Trace-Command -PSHost -Name ParameterBinding -Expression { Get-ADUser -Filter "givenName -eq '$($hash.Imię)'" }
# BIND arg [givenName -eq 'Bartek'] to param [Filter] SUCCESSFUL
Trace-Command -PSHost -Name ParameterBinding -Expression { Get-ADUser -Filter { givenName -eq $hash.Imię }}
# BIND arg [ givenName -eq $hash.Imię ] to param [Filter] SUCCESSFUL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment