Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Jazkal

Enable Proxy on WinPE?

Recommended Posts

Anyone know how to enable proxy in WinPE 3.x?

I've tried to run through the same steps that I have to do under Win2k8 R2, but netsh.exe under WinPE is a different version that doesn't support winhttp settings.

Anyone else had to deal with proxy under WinPE?

Share this post


Link to post
Share on other sites

I would also like to know... i'm about to try replacing netsh.exe in winpe image. I'll let you know how it goes.

Share this post


Link to post
Share on other sites

netsh file in pe is the same however i stumbled on a few reg keys for netsh that allow you to add functions. I copied all dlls referenced from my local win7 registry at

HKEY_LOCAL_MACHINE\Temp\Microsoft\NetSh

along with the keys themselves to the winpe image by loading the SOFTWARE hive from the mounted wim image windows\system32\config directory to HKLM\Temp.

There were a few helper dlls it couldn't load so i took them back out.

DOT3CFG.DLL
NETTRACE.DLL
WCNNETSH.DLL
P2PNETSH.DLL
WLANCFG.DLL
WWANCFG.DLL
DHCPMON.DLL

I was left with this

[HKEY_LOCAL_MACHINE\Temp\Microsoft\NetSh]
"nshwfp"="nshwfp.dll"
"dhcpclient"="dhcpcmonitor.dll"
"wshelper"="wshelper.dll"
"4"="rasmontr.dll"
"2"="ifmon.dll"
"netiohlp"="netiohlp.dll"
"nshhttp"="nshhttp.dll"
"fwcfg"="fwcfg.dll"
"authfwcfg"="authfwcfg.dll"
"whhelper"="whhelper.dll"
"hnetmon"="hnetmon.dll"
"rpc"="rpcnsh.dll"
"napmontr"="napmontr.dll"
"nshipsec"="nshipsec.dll"
"peerdistsh"="peerdistsh.dll"

I now have winhttp command in netsh.

Also I ended up just hard coding my proxy config from local registry into winpe registry. The key is at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings

Just copy it to HKLM\Temp (or wherever you loaded WinPE SOFTWARE hive).

I'm testing the final product now.

Share this post


Link to post
Share on other sites

Great work!

I will try and duplicate it in my system sometime next week. This is a life saver.

Share this post


Link to post
Share on other sites

didn't work for my enviornment, I think it is because I need to login to the proxy so now i'm trying to integrate internet explorer to the image as well.

Share this post


Link to post
Share on other sites

Thankfully I don't have to worry about logging into our proxy, so maybe I'll have better luck with it. I'll update here with my results.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...