Here is a quick Powershell script to convert a SharePoint WebApplication from Classic (Windows) Authentication to Claims Authentication. This script is tested in SharePoint 2010 only.
When working with SharePoint 2013, you will not need this in most cases as the default authentication provider is Claims.
When working with SharePoint 2013, you will not need this in most cases as the default authentication provider is Claims.