Get the App
SLTechnology News&Howtos  ›  Servers  › 

AD- batch enable account command Enable-adaccount

Shulou Source: shulou.com Published: 2022-06-03 00:25:15 12月06日 Update

Learn from:

Teacher Xu Peng's AD Powershell series of video courses

The user's current status is disabled

Execute the following command, and the user is enabled (the following is for users under the Lab organizational unit)

Get-ADUser-SearchBase "ou=Lab,dc=satid,dc=com"-Filter * | Enable-ADAccount

The user has disabled by executing the following command

Get-ADUser-SearchBase "ou=Lab,dc=satid,dc=com"-Filter * | Disable-ADAccount

Tags: User command unit status teacher video course Xu Peng study account Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Huawei vpn Linux Docker