← 返回命令列表

Linux command

adcli 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Join

sudo adcli join [domain.com]

Example

sudo adcli join -U [administrator] [domain.com]

Info

adcli info [domain.com]

Test

adcli testjoin

说明

adcli is a command-line tool for performing actions on an Active Directory domain. It can join Linux machines to AD domains, manage computer accounts, and query domain information without requiring Samba. The tool uses standard Kerberos and LDAP protocols to communicate with domain controllers, making it lightweight and suitable for automated deployments.

参数

join
Join the local machine to the domain
preset-computer
Pre-create a computer account in the domain
reset-computer
Reset the computer account password
delete-computer
Delete a computer account from the domain
update
Update machine account attributes
testjoin
Test if machine is joined to domain
info
Display domain information
-U _user_
Administrator username for joining
-D _domain_
Domain to join
-O _ou_
Organizational unit for computer account
-H _hostname_
Override local hostname
--stdin-password
Read password from stdin

FAQ

What is the adcli command used for?

adcli is a command-line tool for performing actions on an Active Directory domain. It can join Linux machines to AD domains, manage computer accounts, and query domain information without requiring Samba. The tool uses standard Kerberos and LDAP protocols to communicate with domain controllers, making it lightweight and suitable for automated deployments.

How do I run a basic adcli example?

Run `sudo adcli join [domain.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does join do in adcli?

Join the local machine to the domain