Enable-adaccount of the psad command!

Source: Internet
Author: User

Enable-adaccount of the psad command!

When an account is disabled and needs to be enabled, We need to execute the Enable-adaccount command to Enable our account. In this case, let's make an interesting attempt, we use the new-aduser command to create a user. What will happen when we need to enable it? Let's execute:

 

Let's start the account and check the result. We will find that the account cannot be enabled due to the special attribute "no password:

Now let's set the password and enable it again to see the result:

Follow the steps above to enable the account.

 

Next, we will enable batch accounts. This is also through our get-aduser combined with our enable-adaccount for Account Activation:

Get-aduser-searchbase "ou = it, dc = pilot, dc = com"-filter 'enabled-eq $ false' | enable-adaccount

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.