To add to the answer by Manigandan Sekar: Windows 10 offers the opportunity to install a Linux environment using the Linux Subsystem for Windows or Bash on Ubuntu on Windows (pro autumn '17 update). I'm running an Ubuntu installation this way and installed OpenFOAM onto this Ubuntu (https://openfoam.org/download/windows-10/). Simulations run fine. Compiling of the code ist not a problem.
Furthermore there is the opportunity to install OpenFoam v1712 directly to windows: https://www.openfoam.com/download/install-binary-windows.php