LX0-104 · Question #585
Which command would create a machine account in Active Directory under the Computers\BusinessUnit\Department\Servers organizational unit?
The correct answer is D. net ads join "Computers\BusinessUnit\Department\Servers". The net ads join command is used to add a Samba machine to an Active Directory domain, allowing the specification of a target Organizational Unit for the machine account.
Question
Options
- Anet rpc join -m localhost -
- Brpcclient -c "join Computers\BusinessUnit\Department\Servers"
- Cnet ads join ou="Computers\BusinessUnit\Department\Servers"
- Dnet ads join "Computers\BusinessUnit\Department\Servers"
How the community answered
(18 responses)- A6% (1)
- B6% (1)
- C17% (3)
- D72% (13)
Why each option
The `net ads join` command is used to add a Samba machine to an Active Directory domain, allowing the specification of a target Organizational Unit for the machine account.
`net rpc join` is used for joining Windows NT4-style domains, not Active Directory, and has different syntax.
`rpcclient` is a command-line utility for interacting with RPC services and does not directly have a 'join' command for Active Directory domain enrollment with OU specification.
The syntax `ou=` is not a recognized flag for the `net ads join` command to specify the organizational unit; the OU's distinguished name is typically passed as a direct string argument.
The `net ads join` command is the correct utility for joining a Samba server to an Active Directory domain. When a string representing the Organizational Unit (OU) path is provided as an argument, Samba attempts to create the machine account within that specified OU.
Concept tested: Samba Active Directory join OU
Source: https://www.samba.org/samba/docs/current/manpages/net.8.html
Topics
Community Discussion
No community discussion yet for this question.