Skip to content

Commit

Permalink
Fix wrong use of string
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Aug 30, 2024
1 parent 4833658 commit f436de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Private/Request-ADComputersDisable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
if ($DisableAndMove -and $DisableMoveTargetOrganizationalUnit) {
if ($DisableMoveTargetOrganizationalUnit -is [System.Collections.IDictionary]) {
$OrganizationalUnit = $DisableMoveTargetOrganizationalUnit
} elseif ($TargetOrganizationalUnit -is [string]) {
$DomainCN = ConvertFrom-DistinguishedName -DistinguishedName $TargetOrganizationalUnit -ToDomainCN
} elseif ($DisableMoveTargetOrganizationalUnit -is [string]) {
$DomainCN = ConvertFrom-DistinguishedName -DistinguishedName $DisableMoveTargetOrganizationalUnit -ToDomainCN
$OrganizationalUnit = [ordered] @{
$DomainCN = $DisableMoveTargetOrganizationalUnit
}
Expand Down

0 comments on commit f436de5

Please sign in to comment.