-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The function tries to redirect default user / computer location to "OU=Provisioning" but the OU in SQLite is called "OU=Provision"
#$RedirPath = "OU=Provisioning,OU=$($FocusHash['Stage']),OU=Tier-2,$DomDN"
$RedirPath = "OU=Provision,OU=$($FocusHash['Stage']),OU=Tier-2,$DomDN"
This information should come out of the SQLite DB and not being hardcoded.
It should also use the well known GUIDs not the names:
#$CompWKO = $WellKnownObjects | Where-Object {$_ -like "*CN=Computers,*"}
$CompWKO = $WellKnownObjects | Where-Object {$_ -match '\:AA312825768811D1ADED00C04FD8D5CD\:'}
# Corrected to "Users" and using wellknown GUID
#$UserWKO = $WellKnownObjects | Where-Object {$_ -like "*CN=Computers,*"}
$UserWKO = $WellKnownObjects | Where-Object {$_ -match '\:A9D1CA15768811D1ADED00C04FD8D5CD\:'}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request