API Reference
Command
Enable-ADXUser
Enables an Active Directory user account.
Examples
Example 1: Preview re-enabling a returning employee
Enable-ADXUser -Identity 'anna.kowalska' -Domain 'contoso.com' -WhatIf
Example 2: Enable a staged service account after approval
Enable-ADXUser -Identity 'svc_sql_ops' -Domain 'contoso.com'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Enable-ADXUser -Identity <string> [-Domain <string>] [<CommonParameters>]#Parameters
- Identity string
- Gets or sets user identity (sAMAccountName, UPN, DN, mail, or name).
- Domain string
- Gets or sets the optional domain DNS name.
Outputs
ADPlayground.DirectoryMutationResult