ValueFromPipelineByPropertyName in Disable-ADSIComputer
evetsleep opened this issue · comments
evetsleep commented
From what I understand (this is the first I've seen someone do this):
[parameter(Mandatory = $true, ValueFromPipelineByPropertyName = "SamAccountName", ValueFromPipeline = $true)]
ValueFromPipelineByPropertyName takes a bool as its value. I took a look at MSDN and it would appear that proper values are indeed $true or $false.
Or am I wrong and missing someting?
François-Xavier Cat commented
Thanks @evetsleep ! Definitely a typo that I carried over multiple functions... -_-
Fixed in the last ##Commit.
Thanks again!