Re: different ip addresses at different locations

From: Bill Sanderson (Bill_Sanderson_at_msn.com.plugh.org)
Date: 04/02/04


Date: Fri, 2 Apr 2004 13:33:00 -0500


"Shenan Stanley" <news_helper@hushmail.com> wrote in message
news:OG3X30KGEHA.2408@TK2MSFTNGP10.phx.gbl...
>
> Another solution would require some user knowledge/experience, but not
> much.
> Even assuming they must log into a domain, the machine will cache the
> logon
> and then, given the user have the correct rights, they could use a batch
> script you write for them to change the IP appropriately.
>
> We do this in several locations. Using a NETSH dump for each site and
> applying those dumps using the scripts. We have as many scripts on the
> laptop as the user has locations without DHCP and they run the appropriate
> script.
>
> Do a GOOGLE search for NETSH for more information, but essentially:
>
> To Save the current Settings, type the following command:
>
> netsh -c interface dump >settingssiteone.txt
>
> You can then create a dump file for every network that you use.
>
> To load a set of settings again, type the following command:
>
> netsh -f settingssiteone.txt

Netsh gets even more powerful with SP2--it will be able to configure both
the IPV4 and IPV6 firewalls.

This is a very useful mechanism, and I suspect we'll see more third-party
stuff using it under the hood.



Relevant Pages

  • Re: different ip addresses at different locations
    ... > Neither locations have a DHCP in existence. ... script you write for them to change the IP appropriately. ... Do a GOOGLE search for NETSH for more information, ... netsh -c interface dump>settingssiteone.txt ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Command to dump/restore user info OSR5
    ... Write a script that does a dump and then compares the current dump against the previous such dump. ... You don't have a diff unless you install the devsys or gnutools. ... The order of the filenames on the diff command line, and the way the script renumbers filenames, means that the first instance is the old password and the next instance is the new password. ...
    (comp.unix.sco.misc)
  • Re: Need some small help on shell script - delete old files
    ... command so that it does not search subdirectories past this directory ... The find command shows all files in the directory and subdirectories. ... I am using your script. ... recent dump is always left un-compressed with no .gz extension. ...
    (comp.unix.shell)
  • Re: Need some small help on shell script - delete old files
    ... I am using your script. ... recent dump is always left un-compressed with no .gz extension. ... or use the "wait" command to see if it must delay the start of the ... The second dump has to be coming from an alternate CRON job or an AT ...
    (comp.unix.shell)
  • Issue related to system() call and file handles.
    ... The command makes a call to an Oracle command called 'exp'. ... Helps dump the database into a raw file. ... I have this script I make on the fly that calls this application ... One problem though, it seems like, the exp command, can't create the ...
    (comp.lang.c)