Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
po
Post Prodigy
Post Prodigy

Install-Module -Name MicrosoftPowerBIMgmt error

Hi,

 

powershell 5.1 version

 

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

 

powerbi_error.png

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

 

 

 

 

1 ACCEPTED SOLUTION

8 REPLIES 8
Angel
Resolver III
Resolver 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.. 

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

 

Hi @po ,

 

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

 

Greetings

Hi,

 

Thanks for update.

 

Must be some connetcion to internet I guess as the gateway machine is working and have reports resfreshing through it.

 

I'm guessing soem sites may be blocked?

 

Which site do I need a connection to in order to be able to use Install-Module -Name

 

Thanks

Hi @po 

 

I think this https://www.powershellgallery.com/

 

Greetings

Hi,

 

Thanks - after raising with sever team and running below got powerbimgtmt cmdlet to install.

 

once ran [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

 

How can we run powershell script automatically without having to run this or can we includ ethis in powershell script as first line [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 

 

?

 

Thanks

Hi,

 

Thanks for update

Hi,

 

Thanks is there an aternative e.g an executabel we could download on another machine and then copy across and also what is the site.

 

Generally this protected server as gateway server and thinking of bare minimun site if whiletlisted it that coudl connect to.?

 

Thanks

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.