In news:(E-Mail Removed),
Todd J Heron [MVP] <todd_heron(delete)@hotmail.com> stated, which I
commented on below:
>
> No need for VBS. You can use one-line netsh commands to switch back
> and forth. Short and simple.
>
> When you're in the office, the below command sets the IP address of
> the NIC named "Local Area Connection" to 192.168.0.10, subnet mask to
> 255.255.255.0, default gateway address to 192.168.0.1 and metric to
> 10.
> netsh interface ip set address "Local Area Connection" static
> 192.168.0.10 255.255.255.0 192.168.0.1 10
>
> When you need DHCP:
>
> netsh interface ip set address "Local Area Connection" dhcp
I actually did something similar for my brother-in-law for his laptop using
WMI. Of course I had a little help from the folks in the VB group and the
private MVP group. Unfortunately it wound up being two separate scripts, one
to run when home, one torun when at work. I didn't pursue it enough because
I don't have enough knowledge writing scripts, to combine them with prompts
asking what part you want run.
For Calros, I got my intial script pieces from
http://cwashington.netreach.net and from teh Script Center at
www.technet.com. The scripts are all free and can be customized. Of course
you can take what Todd suggested and put them into a batch file as well,
place them on your desktop, and double click on them when needed.
--
Ace
This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.
If you are having difficulty in reading or finding responses to your post,
instead of the website you are using, if I may suggest to use OEx (Outlook
Express or any other newsreader of your choosing), and configure a newsgroup
account, pointing to news.microsoft.com. This is a direct link into the
Microsoft Public Newsgroups, and it is FREE and DOES NOT require a Usenet
account with your ISP. With OEx, you can easily find your post, track
threads, cross-post, and sort by date, poster's name, watched threads or
subject.
Not sure how? It's easy:
How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164
Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Windows Server Directory Services
Microsoft Certified Trainer
Assimilation Imminent. Resistance is Futile.
Infinite Diversities in Infinite Combinations.
=================================