If you are running the latest version of windows you can use the new Cmdlet Get-FileHash. For all others Microsoft has a tool called Microsoft File Checksum Integrity Verifier or FCIV for short.

The cmdlet supports the following hashes.. SHA1,SHA256,SHA384,SHA512,MACTripleDES,MD5,RIPEMD160 The FCIV supports SHA1 and MD5.

PS C:\> Get-FileHash -Algorithm sha1 -FilePath C:\7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso
Path                                    Type                                    Hash
----                                    ----                                    ----
C:\7601.17514.101119-1850_x64fre_ser... System.Security.Cryptography.SHA1Man... vu0jGjTpDh3ZoEs6+r7DHWLOOIk=
C:\>\FCIV\fciv.exe \downloads\Isos\Windows2012r2.iso -sha1 -md5
//
// File Checksum Integrity Verifier version 2.05.
//
                MD5                             SHA-1
-------------------------------------------------------------------------
12345678901234567890abcdefabcdef 12345678901234567890abcdefabcdef12345678