Microsoft upbeat as profits almost double