Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Unlock-ADSIUser.ps1 #57

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
function Unlock-ADSIUser
function Unlock-ADSIAccount
{
<#
.SYNOPSIS
Function to Unlock a User in Active Directory
Function to Unlock a User account in Active Directory

.DESCRIPTION
Function to Unlock a User in Active Directory
Function to Unlock a User account in Active Directory

.PARAMETER Identity
Specifies the Identity
Expand All @@ -14,10 +14,10 @@ function Unlock-ADSIUser
Specifies alternative credential

.EXAMPLE
Unlock-ADSIUser -Identity 'testaccount'
Unlock-ADSIAccount -Identity 'testaccount'

.EXAMPLE
Unlock-ADSIUser -Identity 'testaccount' -Credential (Get-Credential)
Unlock-ADSIAccount -Identity 'testaccount' -Credential (Get-Credential)

.PARAMETER DomainName
Specifies the alternative Domain where the user should be created
Expand Down Expand Up @@ -53,3 +53,4 @@ function Unlock-ADSIUser
(Get-ADSIUser -Identity $Identity @ContextSplatting).UnlockAccount()
}
}
New-Alias -Name Unlock-ADSIUser -Value Unlock-ADSIAccount