lazywinadmin / AdsiPS

PowerShell module to interact with Active Directory using ADSI and the System.DirectoryServices namespace (.NET Framework)

Home Page:http://www.lazywinadmin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueFromPipelineByPropertyName in Disable-ADSIComputer

evetsleep opened this issue · comments

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?

Thanks @evetsleep ! Definitely a typo that I carried over multiple functions... -_-

Fixed in the last ##Commit.

Thanks again!