Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
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,
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,
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
1 | |
1 | |
1 |