I am trying to install magento 2.0 on Windows Server 2008 R2.
I have followed all instructions i have found over this link here but while i try to localhost/magento it gives me error 500.
How to deal in this case?
Unfortunately just a "500 error" won't tell us the problem. Be sure to check your error logs as this will tell you the exact error. If you still need any help once you have that just paste the entries from your error log here and someone will surely be able to help.