Windows Server: The operation failed to complete because the Disk Management console view is not up-to-date
I was trying to format a newly added disk on Windows Server 2008 R2 however, couldn't format the disk or assign a drive letter to the disk.
The Server was a Virtual Machine hosted on a VMware Workstation 10. I tried to refresh the disk management console and even did restart the server however, same error persisted.
To my suprise, there were no warnings or erros in event viewer for this issue. Since it was a virtual machine, I removed the virtual disk and added a new virtual disk on the VM but in vain. No luck at all, error didnt vanish.
Finally to fix this issue, I had to use diskpart and format the disk.
Complete instructions here