You need to add the PowerShell Gallery repository first:
Register-PSRepository -Default
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All
I am getting below error installing Microsoft.Graph powershell module please guide me
PS C:\Windows\system32> Install-Module Microsoft.Graph -Scope AllUsers
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Microsoft.Graph'. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
PS C:\Windows\system32> Get-PSRepository
WARNING: Unable to find module repositories.
You need to add the PowerShell Gallery repository first:
Register-PSRepository -Default
The below should fix it, let me try it
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Unregister-PSRepository -Name PSGallery
Register-PSRepository -Default
The below fixed it
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Unregister-PSRepository -Name PSGallery
Register-PSRepository -Default
PS C:\Windows\system32> Register-PSRepository -Default
PS C:\Windows\system32> Get-PSRepository
WARNING: Unable to find module repositories.
Try running the cmdlet as admin.