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: 3
Last visit: Thu Sep 09, 2021 2:55 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: 7767
Last visit: Fri Sep 24, 2021 2:30 pm
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: 3
Last visit: Thu Sep 09, 2021 2:55 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: 7767
Last visit: Fri Sep 24, 2021 2:30 pm
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: 3
Last visit: Thu Sep 09, 2021 2:55 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: 863
Last visit: Fri Sep 24, 2021 2:53 pm
Answers: 19
Been upvoted: 16 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.