startup script dont'work

G

Guest

I used a script to change IP configuration by netsh.

:: Switch2DHCP.cmd
@echo off
@echo Changing to Static IP address

:: Set to dhcp.
netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp

@echo System Switched to DHCP

locally it works, when i set a startup scripts by domain group policy, it does not works. gpresult state that the policy is OK.
can you help me?
 
B

Brian Desmond [MVP]

What do you mean by it doesn't work? Symptoms, etc.

Add some logging in there to see what's going on...

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com


martog said:
I used a script to change IP configuration by netsh.

:: Switch2DHCP.cmd
@echo off
@echo Changing to Static IP address

:: Set to dhcp.
netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp

@echo System Switched to DHCP

locally it works, when i set a startup scripts by domain group policy, it
does not works. gpresult state that the policy is OK.
 
G

Guest

hi Brian,

It means that IP client's configurations does not switch to "automatically" (ready DHCP), but remains in manual. I see on my windows 2000 client "apply startup policy" before the logon, but after the logon if I check ip configuration, the client preserves his ip address, subnet mask, etc. I repeat, if I run the script locally, immediately it switchs to automatically.
I thinK about a sort of incompatibility between startup scripts and netsh, it's possible?

thanks,

Mario
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top