From 91eb9a34c546d995d82d837c019db3008411cd0b Mon Sep 17 00:00:00 2001 From: VALDINGER Date: Fri, 3 Aug 2018 23:49:36 -0400 Subject: [PATCH] Was throwing red text in Get-ComputerFromOU. Stray } --- Public/Get-ComputerFromOU.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Public/Get-ComputerFromOU.ps1 b/Public/Get-ComputerFromOU.ps1 index d03b3b5..930bb7b 100644 --- a/Public/Get-ComputerFromOU.ps1 +++ b/Public/Get-ComputerFromOU.ps1 @@ -59,12 +59,12 @@ Function Get-ComputerFromOU{ $ComputerName, [Parameter()] - # Could use a good ValidateSet() + # Could use a good [ValidateSet()] [string[]] - $Properties = 'DistinguishedName','DNSHostName','Name','SAMAccountName' + $Properties ) process { - if ($PSBoundParameters.ContainsKey('ComputerName')) { + if ($PSBoundParameters.ContainsKey('Properties')) { $ComputerName | Get-ADComputer -SearchBase $OrganizatienalUnit -Properties $Properties }