Unable to install PowerShell modules in Windows Server 2016?

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Error: Install-PackageProvider : Unable to find repository with SourceLocation ”. Use Get-PSRepository to see all available repositories.
PS C:\Windows\system32> Get-PSRepository
PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet).

Solution: If you have FIPS mode enabled on your windows environment, you need to disable it.

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-module -Name ProcessMitigations