Support Forums

Netsh winhttp HTA??

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.
User avatar
estradacme
Posts: 1
Joined: Mon Sep 24, 2012 7:45 am

Netsh winhttp HTA??

Postby estradacme » Mon Sep 24, 2012 7:45 am

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="*.somesites.com"
User avatar
jvierra
Posts: 9708
Joined: Tue May 22, 2007 9:57 am
Contact:

Netsh winhttp HTA??

Postby jvierra » Fri Oct 12, 2012 3:12 pm

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.
User avatar
galaara98
Posts: 9
Joined: Thu May 09, 2013 3:56 pm

Re: Netsh winhttp HTA??

Postby galaara98 » Fri May 10, 2013 4:06 pm

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]
User avatar
jvierra
Posts: 9708
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Netsh winhttp HTA??

Postby jvierra » Fri May 10, 2013 5:00 pm

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.

Return to “Other Scripting Languages”

Who is online

Users browsing this forum: No registered users and 4 guests