Page 1 of 1

Netsh winhttp HTA??

Posted: Mon Sep 24, 2012 7:45 am
by estradacme
I'm in the middle of migrating a global location to our new proxy servers. I have no access to group policy ( dont ask) so I figure I can create an HTA script for my helpdesk team so they can work on problematic machines when we go live.
Can someone guide me on creating the following for an HTA using “netsh winhttp set proxy XXXXXX” windows command???
There are 7 locations globally each running a different proxy server -

1. I need a way to connect to machines with any problems
a. Have a button where my helpdesk can select the appropriate proxy server and automate the install
b. so I need the ability to have a drop- down list or similar so the helpdesk can select the appropriate proxy servers and push this to the machine in question
2. Need a way to write to a log of what was modified once the change occurs

Full command:
netsh winhttp set proxy proxy-server="http=myproxy;https=myproxy:88" bypass-list="*"

Netsh winhttp HTA??

Posted: Fri Oct 12, 2012 3:12 pm
by jvierra
Can you post your HTA?

I don't think I understand what you mean. You cannot execute 'netsh' commads in an HTA so you need to give us your script and more infomation about what is not working or what errors you are getting.

Re: Netsh winhttp HTA??

Posted: Fri May 10, 2013 4:06 pm
by galaara98
Is your Proxy needed to reach internal http resources.

Basically can you have your end users come to a webpage that helps them, instead of your Support staff instigating the change.

the simplest solution is a web page that says Start -> Run -> paste this text -> click Ok

The other thing you can do is write a script that runs on login (or whatever) that sets it. (not sure if you have access to deploy files to your workstations)

The other thing is technically netsh is a tool that manipulates the registry, you can use any number of registry manipulation strategies to do the equivalent (a simple .reg file would work) If you did want to look at it from a registry perspective: I believe the area you are interested in is HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections [WinHttpSettings]

Re: Netsh winhttp HTA??

Posted: Fri May 10, 2013 5:00 pm
by jvierra
The method at hand will not work on earlier system.

Group Policy is the only rational approach to corporate rules.

NETSH works on newer systems but requires access to an admin session. WMI is great fro remoteing this. PowerShell is even better.

THis question came up frequently last year but quickly was abandoned when the help desk found out that the browser would auto-set if it was configured correctly.