internet via Webproxy

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
nekhoroshevmv
Posts: 4
Last visit: Fri Oct 08, 2021 3:29 am

internet via Webproxy

Post by nekhoroshevmv »

Product, version and build: powershell module 2021, v 1.1.11
Operating system: windows 10 pro
PowerShell version(s): 5.1
I have access to the internet via Webproxy. IE is up and running. But when running the program I get the error:
WARNING: Unable to detect an internet connection. If the current repository in Options is an online source, then functionality may be limited. Please check your network connection.
How can i configure webproxy to receive module updates?

User avatar
Alexander Riedel
Posts: 7779
Last visit: Wed Oct 13, 2021 11:48 am
Answers: 6
Been upvoted: 11 times

Re: internet via Webproxy

Post by Alexander Riedel »

The best place to start is to check that PowerShellGet is working from your console.
Not knowing what type of proxy you have, the minimum to have is to add
https://www.powershellgallery.com/api/v2
to the URLs allowed by your proxy. If you use another repository than the default PowerShell Gallery, please use that URL accordingly.
Alexander Riedel
SAPIEN Technologies, Inc.

nekhoroshevmv
Posts: 4
Last visit: Fri Oct 08, 2021 3:29 am

Re: internet via Webproxy

Post by nekhoroshevmv »

For the console, I created a profile and added to it:
  1. [System.Net.WebRequest]::DefaultWebProxy = New-Object System.Net.WebProxy('MyInternalWebProxy')
  2. [System.Net.WebRequest]::DefaultWebProxy.BypassProxyOnLocal = $true
Otherwise, it did not work to get powershell to work.
If there are alternative solutions, I will be very glad to hear.
Netsh for powershell also failed to configure.

User avatar
Alexander Riedel
Posts: 7779
Last visit: Wed Oct 13, 2021 11:48 am
Answers: 6
Been upvoted: 11 times

Re: internet via Webproxy

Post by Alexander Riedel »

I will consult with the development team. Please stand by. This may take a little bit to research.
Alexander Riedel
SAPIEN Technologies, Inc.

nekhoroshevmv
Posts: 4
Last visit: Fri Oct 08, 2021 3:29 am

Re: internet via Webproxy

Post by nekhoroshevmv »

Is it possible in powerstudio to use a profile file like in powershell ise?

User avatar
brittneyr
Site Admin
Posts: 883
Last visit: Wed Oct 13, 2021 3:14 pm
Answers: 20
Been upvoted: 17 times

Re: internet via Webproxy

Post by brittneyr »

Please post this question as a new topic in the correct forum.
Brittney Ryn
SAPIEN Technologies, Inc.

nekhoroshevmv
Posts: 4
Last visit: Fri Oct 08, 2021 3:29 am

Re: internet via Webproxy

Post by nekhoroshevmv »

brittneyr wrote:
Mon Sep 20, 2021 7:29 am
Please post this question as a new topic in the correct forum.
On which forum?
I have a question about working with modules through the PowerShell ModuleManager through a corporate proxy server.

User avatar
brittneyr
Site Admin
Posts: 883
Last visit: Wed Oct 13, 2021 3:14 pm
Answers: 20
Been upvoted: 17 times

Re: internet via Webproxy

Post by brittneyr »

My apologies for the confusion. I was referring to this question:
Is it possible in powerstudio to use a profile file like in powershell ise?
If you are posting about PowerShell ModuleManager, then this is the correct forum.
If you are posting about PowerShell Studio, then please post in this forum:
viewforum.php?f=12

PowerShell ModuleManager does not use profiles, but you are welcome to make a feature request:
https://www.sapien.com/requests
Brittney Ryn
SAPIEN Technologies, Inc.