Place enrolled clients in policy OU

This commit is contained in:
2026-09-03 11:43:01 -06:00
parent 1014e24880
commit d50a4d9895
2 changed files with 13 additions and 1 deletions
+4
View File
@@ -18,6 +18,7 @@ param(
[PSCredential]$DomainCredential,
[string]$DomainName = 'lci.lasalle.mx',
[string]$DomainNetbios = 'LCI',
[string]$ComputerOuDn = 'OU=Laboratorio,DC=lci,DC=lasalle,DC=mx',
[string]$NewComputerName,
[string]$NetworkInterfaceAlias = 'Ethernet',
[string[]]$DomainDnsServerAddresses = @('192.168.50.10'),
@@ -109,6 +110,9 @@ if ($PSCmdlet.ShouldProcess($env:COMPUTERNAME, 'Install and verify SGU before jo
Credential = $DomainCredential
Force = $true
}
if ($ComputerOuDn) {
$joinParams.OUPath = $ComputerOuDn
}
if ($NewComputerName) {
$joinParams.NewName = $NewComputerName
}