How to modify AD users' attributes using PowerShell script

The following is a comparison between modifying AD user's attributes with Windows PowerShell and ADManager Plus:

Windows PowerShell

Steps to modify users’ attribute using PowerShell:

  • Identify the domain in which you want to modify the user(s)
  • Identify the LDAP attributes you need modify
  • Compile the script.
  • Execute it in Windows PowerShell.

Sample Windows PowerShell script

 Copied
Set-ADUser -Identity ScottJohn -HomePage 'http://ABCcompany.com/employees/ScottJohn -LogonWorkstations ScottJohn-DSKTOP,ScottJohn-LPTOP'
Click to copy entire script

ADManager Plus

To modify multiple users:

  • Select Modify Bulk Users option in Management -> User Management
  • Import the CSV file containing the users and their corresponding updated attributes.
  • Click Update in AD.

Screenshot

Modify Active Directory users' attributes using ADManager Plus

» Start 30-day Free Trial

Following are the limitations to modify AD user(s) using native tools like Windows PowerShell:

  • We can run this script only from the computers which has Active Directory Domain Services role.
  • With each attribute update, the script will get longer and complicated
  • Troubleshooting is not easy in case of errors.

ADManager Plus can modify multiple users’ attributes in bulk armed with just a CSV file in a simple and intuitively designed UI.

Manage Active Directory user settings in bulk with ADManager Plus' bulk management feature.

  Get 30-day free trial.
  • Embark on your script-free AD management, reporting, and automation journey with ADManager Plus.
  •  
     
  • By clicking 'Start your free trial now', you agree to processing of personal data according to the Privacy Policy.
  • Thanks
  • Your download should begin automatically in 15 seconds. If not, click here to download manually.

Related Powershell How-to Guides:

The one-stop solution toActive Directory Management and Reporting

Email Download Link