Forum Discussion

po's avatar
po
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Install-Module -Name MicrosoftPowerBIMgmt error

Hi,

 

powershell 5.1 version

 

getting an error below when try install Install-Module -Name MicrosoftPowerBIMgmt.

 

If try 

 

> GET-PSRepository
WARNING: Unable to find module repositories.

 

How can we resolve.

 

Machine not connected to internet thus not sure if we need to do something different to get this installed and what?

 

When installs does it connect to internet to download?

 

Thanks

 

 

 

 

8 Replies

  • Angel's avatar
    Angel
    Icon for Resolver III rankResolver III

    Hi po 

     

    This is the code I'm using...

     

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    
    Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
    Install-Module -Name MicrosoftPowerBIMgmt

    Try it and tell me if it works.. 

    • po's avatar
      po
      Icon for Post Prodigy rankPost Prodigy

      Hi,

       

      Get message below when attempting to run second line.

       

      PS > Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
      Set-PSRepository : No repository with the name 'PSGallery' was found.
      At line:1 char:1
      + Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : InvalidOperation: (PSGallery:String) [Set-PSRepository], InvalidOperationException
      + FullyQualifiedErrorId : RepositoryNotFound,Set-PSRepository

       

      • Angel's avatar
        Angel
        Icon for Resolver III rankResolver III

        Hi po ,

         

        You need a conecction to internet in order to download the cmdlets.

         

        Greetings