Win8 and WIN10 application proxy access Network (no third-party tools)

Source: Internet
Author: User
Tags virtual environment

Using the WIN8 and WIN10 applications will find that if you set up a network proxy, such as a PAC or localhost proxy server, the app will not be able to access the network

The reason is that these apps are running in a sandbox virtual environment and cannot access localhost. Therefore, the agent cannot be used.

In fact, the system has a set option for these apps, which can be modified using CheckNetIsolation.exe.

Use the following:

CheckNetIsolation.exe loopbackexempt-a-n=microsoft.windowscommunicationsapps_xxxxxxxx

-N is the package name, which is obtained in the "%userprofile%\appdata\local\packages" folder

If the batch setup is a bit cumbersome, so write a VBS script, the code is as follows:

A = MsgBox ("Click ' Yes ' to enable all Windowsapp to delegate access to the network," & vbCrLf & vbCrLf & "Click ' No ' to clear all Windowsapp proxy access to network permissions! ", 51," Make Windowsapp Get proxy permissions ") If a = 2 then Wscript.quitset ws=wscript.createobject (" Wscript.Shell ") If a = 6 thenw=ws. ExpandEnvironmentStrings ("%userprofile%\appdata\local\packages") Set Fso=wscript.createobject (" Scripting.FileSystemObject ") Set Fs=fso. GetFolder (w) Set F=fs. Subfoldersset ff = Fso.createtextfile (ws. ExpandEnvironmentStrings ("%temp%\windowsappproxyaccess.bat")) for each uu in FFF. WriteLine ("CheckNetIsolation.exe loopbackexempt-a-n=" & Uu.name) Nextff.writeline ("Del%0") CreateObject (" Shell.Application "). ShellExecute ws. ExpandEnvironmentStrings ("%temp%\windowsappproxyaccess.bat"), "", "" "," RunAs ", 1elseif a = 7 Thencreateobject (" Shell.Application "). ShellExecute "CheckNetIsolation.exe", "Loopbackexempt-c", "" "," runas ", 1end if
Save as a. vbs file, and CheckNetIsolation.exe will ask for administrator privileges during the process.


Win8 and WIN10 application proxy access Network (no third-party tools)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.