Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueFromPipelineByPropertyName in Disable-ADSIComputer #5

Closed
evetsleep opened this issue Aug 18, 2016 · 1 comment
Closed

ValueFromPipelineByPropertyName in Disable-ADSIComputer #5

evetsleep opened this issue Aug 18, 2016 · 1 comment

Comments

@evetsleep
Copy link

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?

@lazywinadmin
Copy link
Owner

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

Fixed in the last ##Commit.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants