startup script dont'work

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
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
 
Back
Top