Skip to content

Unlock-Account

SYNOPSIS

SYNTAX

Unlock-Account [-Username] <Object> [<CommonParameters>]

DESCRIPTION

Unlocks an Active Directory Account

EXAMPLES

EXAMPLE 1

Use Get-lockedAccounts to quickly obtain the identity to use in the command.

Get-LockedAccounts Unlock-ADAccount -identity JohnD

PARAMETERS

-Username

Username of account being unlocked

Type: System.Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Requires the Active Directory Module.

Get-DCLockoutEvents2 Get-LockedAccounts Get-PasswordExpired Set-Password Unlock-AllAccounts

Back to top