Domain join and re-join issues
-
Hi,
I’m running Fog 1.6.1, I’ve tried agents up to 0.1.39
When I image a machine which has no domain account the agent logs:
directory rejoin: blocked (directory_observation_unknown)When I image a machine which does have a domain account, in the console I get the check box “Confirm that this account is assigned to this host…”. But checking it and updating does nothing.
Either way my machines are not joining the domain.
Is there any way of disabling or automating the re-join check? I have 3000 hosts, and my largest labs are 100+ stations. If I need to re-image a large lab it’ll be tedious having to confirm every re-join.
Thank you,
Adam
-
@AdamC Hi Adam,
Thank you for the detail. The message
directory_observation_unknownhas more than one cause. These three facts tell us which cause applies to you.-
Is the image you deploy joined to the domain when you capture it? Is it sysprepped?
-
Open one affected host in the FOG web UI and go to the Active Directory tab. What does the “Domain Join Status” line show?
-
On one affected PC, run this in PowerShell as administrator, and post the output:
Test-ComputerSecureChannel -Verbose (Get-CimInstance Win32_ComputerSystem) | Select-Object Domain, PartOfDomain, DomainRole Test-NetConnection <your DC name> -Port 445
Also check the AD Domain field on that host. Is it your DNS domain name (for example
corp.example.edu), or the short name?About the confirmation checkbox: it saves when you click Update, but the page does not show that it saved. We will fix that display. The rejoin still waits on the first problem, so we need to find that cause first.
About large labs: I understand that a confirmation for each host does not scale to 100+ stations. We are looking at how to handle this.
Tom
-
-
@Tom-Elliott Hi Tom
-
The image is not domain joined or sysprepped
-
Domain Join Status: Needs operator review
-
Test-ComputerSecureChannel : Cannot verify the secure channel password for the local computer. The local computer is not currently part of a domain.
Domain PartOfDomain DomainRole
ASEGSADG False 0
TcpTestSucceeded : True
The AD Domain field contains the DNS domain name
Regarding the confirmation checkbox, I just meant checking it and hitting apply produces no results. The machine never joins the domain after confirming.
Thanks,
Adam
-
-
@AdamC Thank you, that narrows it to one cause.
Your PCs are in a workgroup, so FOG should plan a plain domain join, not a rejoin. FOG blocks only when its stored record of the PC’s membership does not say “workgroup”. So FOG holds an old membership record for these hosts, probably “joined to the domain” from before the re-image, and the agent has not replaced it.
Please check one affected host:
- In the FOG web UI, open Reports, then Directory Membership. Find the host. What do the “Observed domain” and “Reported” columns show?
- Open the host, then its Agent Activity (or the Audit Log, filtered on the host). What does the latest line that starts with “agent reported directory membership:” say, and when?
About the checkbox: the confirmation saves, but it cannot start a join while the membership record is wrong. That is why nothing happened.
About large labs: the next release removes the per-host confirmation. A Deploy now rebinds to the existing computer account without a click, and FOG writes an audit entry for each one. It is on dev-branch now.