Public/Unlock-AllAccounts.ps1

function Unlock-AllAccounts {

    <#
    .SYNOPSIS
    -Taylor Lee
    Modified 05172019
 
    .DESCRIPTION
    Unlocks all Active Directory Accounts
 
    .NOTES
    Requires the Active Directory Module.
 
    .Link
    Get-DCLockoutEvents2
    Get-LockedAccounts
    Get-PasswordExpired
    Set-Password
    Unlock-Account
 
    .Link
    https://github.com/TheTaylorLee/AdminToolbox
    #>


    [CmdletBinding()]
    Param (
    )

    Search-ADAccount -lockedout | Unlock-ADAccount
}