This comes on the petsc documentation if you search for installing on windows:
Installing PETSc On Microsoft Windows
Are You Sure?
Are you sure you want to use Microsoft Windows? We recommend using Linux if possible (and minimize troubleshooting Microsoft Windows related issues).
I had once a mpi - windows NGSolve installation running (without petsc), but it needed quite some adaptations and was quite some work… If you are sure you want to go through this I can search for my modifications… But I would recommend using linux.