“nomatchfoundforcriteria microsoft.powershell.packagemanagement.cmdlets.installpackage“
PS C:\WINDOWS\system32> Install-module -Name AzureAD
PackageManagement\Install-PackageProvider : Unable to find repository with SourceLocation ''. Use Get-PSRepository to see all available repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSModule.psm1:3138 char:21
+ ... $null = PackageManagement\Install-PackageProvider -Name $script:N ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception
You can run save-module AzureAD -Path C:\temp on any working machine, copy the C:\temp\AzureAD folder to the non-working machine and run below command on the non-working machine to import the module:
Import-module C:\temp\AzureAD
That way you can use the module without having to spend time on fixing the NuGet issue.