Skip to content

Commit

Permalink
Was throwing red text in Get-ComputerFromOU. Stray }
Browse files Browse the repository at this point in the history
  • Loading branch information
VALDINGER committed Aug 4, 2018
1 parent ffb9292 commit 91eb9a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Public/Get-ComputerFromOU.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 91eb9a3

Please sign in to comment.