Set-ADUser

Description

Modifies an Active Directory user.

Command
Set-ADUser
Examples
Set the description for a user
Set-ADUser -Identity 'jsmith' -Description 'Accountant'
Disable a user account
Set-ADUser -Identity 'jdoe' -Enabled $false
Clear the manager property for a user
Set-ADUser -Identity 'jdoe' -Clear 'manager'
Parameters
Parameter Type Required Description
-Identity <ADUser> string No Specifies the user to modify.
-Description <String> string No Sets the user's description field.
-Office <String> string No Sets the user's office location.
-Enabled <Boolean> string No Enable or disable the user account.
-Clear <String[]> string No Clears the value of one or more properties.
Command Info
Category: User Management
Type: Windows_ad
Views: 12
Status: Active
Tags
ad powershell user modify set