#Disable DRA User
Function Disable-User ($UserName,$DRAServer)
    {
        $UserName = $UserName.split(",")        
        If ($DRAServer -eq "" -or $DRAServer -eq $null) {$DRAServer = "lackland.dra.us.af.mil"}
        $CN = "cn="
        $OU = ",OU=McGuire AFB Users,OU=McGuire AFB,OU=AFCONUSWEST,OU=Bases,DC=AREA52,DC=AFNOAPPS,DC=USAF,DC=MIL"
        $Count = $UserName.count
        $i = 1
               
        <# Disable User in DRA #>
        ForEach ($User in $UserName)
            {
                $Percent = ($i/$count) * 100
                Show-ProgressBar -Activity "Disabling $User" -PercentComplete $Percent
                ID = $CN+$User+$OU   
                Try
                    {
                            Disable-DRAUser -ErrorAction STOP `
                        -Domain $env:USERDNSDOMAIN `
                        –DRARestServer $DRAServer `
                        -DRARestPort 8755 `
                        –DRAHostServer $DRAServer `
                        –DRAHostPort 11192 `
                        -Identifier $ID `
                        -Force;
                    }
                Catch
                    {
                        Write-Host "Could not disable $User"
                    }
            }
   
    }