Setting connection defaults (proxy, home page) based on location 
Author Message
 Setting connection defaults (proxy, home page) based on location

I have a series of related questions regarding
configuration of certain connection settings via VBScript.

Here is the background:  I am a corporate user, running
WindowsXP on a laptop.  In the office I am connected to
the corporate intranet, and connect through a proxy server
(called "proxy" on port 80).  My home page is an internal
portal only accessible inside the network.

At home (my most common secondary location), I connect via
wireless card to a home network that is hardware
firewalled to a DSL connection.  There is no proxy.

What I am currently doing (see attached script) is:
(1)  Check the location of the computer at  startup based
on the availability of network resources
(2)  Setting the proxy server setting by direct
manipulation of the registry
(3)  Setting the user home page by direct manipulation of
the registry
(4)  changing the icon and destination of a shortcut in my
Quicklaunch to indicate whether I am on or off the
corporate net.
(5)  If at the office, launching Outlook

Having taught myself just enough VBScript to do this, I
want to know if it is possible to:
(1)  Identify the hardware profile from the WSH
(2)  Change the proxy setting and/or home page in a more
elegant way than hacking the registry

Also, right now I run my script by putting the .vbs file
in my startup directory.  Is there a more elegant way to
initiate the code at startup so that other applications
(such as Weatherbug) are launched only after the proxy
setting has been changed?

Any and all advice is welcome, as I am not really a
programmer, or a Windows guy.

Tobias Zimmerman

P.S.  Everything I am doing is "unofficial".  I have admin
rights on my own machine, but I cannot use any central
administration scripts to do this, as I am not in the IT
department, and don't have the power to implement such
things.  Everything has to be executed locally on the host

Also, some of the names in the script were changed to
protect the innocent.

1K Download

Sat, 07 May 2005 22:54:52 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Data State

2. setting default printer based on sorkstation location for romaming profile

3. Changing Dial-up connection proxy settings scripts/tools?

4. ODBC HELP with Oracle

5. using jscript to set/disable home page setting

6. Setting Printer Defaults based on Computer Name

7. link not found, then default to home page

8. Default home page in JScript

9. script set default printer based on...

10. setting default selected menu based on first selection??

11. changing ie default home page

12. List of DSN's.


Powered by phpBB® Forum Software