When Obama took office, the Taliban had the initiative in Afghanistan and were making major gains in Pakistan. They controlled large and growing swaths of territory in both and had just taken over Swat, which is only an hour or so from Islamabad, Pakistan's capital. Remember that Pakistan is nuclear armed.
Today the Taliban are on the defensive. They have lost control of Swat and much of the rest of Pakistan. They have lost control of a great deal of territory in Afghanistan. Their leadership is dying under a hail of drone attacks. Osama bin Laden is dead and the personal commitments the Taliban leadership made to him are gone.
That is about as good as it gets in that part of the world.