- Joined
- Aug 7, 2004
- Messages
- 19,708
I want to be able to remove the default gateway from approx. 80 Windows 2000 workstations without visiting each one.
AFAIK there is no way to do this via group policy, at least not that I could find.
I'd love to be able to do it remotely via the netsh command, but I could not get the username and password commands to work. I am doing this FROM a Windows 7 machine, if that makes a difference in how the command is used. I hit a road block trying to do it remotely with the -r option, so for right now I came up with the following solution which does work:
1) Place a batch file on the user's desktop that launches another command prompt as admin using runas (we have Start > Run hidden by group policy)
2) The new command prompt defaults to C:\WINNT\SYSTEM32 so I place a file called GWDelete.bat in that location. GWDelete.bat contains the netsh command to delete the gateway.
Advantage: Works with no restarts or logoffs required.
Disadvantage: Have to copy the batch file to all 80 PCs and then VNC into each one to make the change.
Although we could easily get those knocked out in a day, there has to be an easier way to do this.
While I'm asking, what would be the correct syntax to accomplish this locally from my PC using netsh -r computername?
AFAIK there is no way to do this via group policy, at least not that I could find.
I'd love to be able to do it remotely via the netsh command, but I could not get the username and password commands to work. I am doing this FROM a Windows 7 machine, if that makes a difference in how the command is used. I hit a road block trying to do it remotely with the -r option, so for right now I came up with the following solution which does work:
1) Place a batch file on the user's desktop that launches another command prompt as admin using runas (we have Start > Run hidden by group policy)
2) The new command prompt defaults to C:\WINNT\SYSTEM32 so I place a file called GWDelete.bat in that location. GWDelete.bat contains the netsh command to delete the gateway.
Advantage: Works with no restarts or logoffs required.
Disadvantage: Have to copy the batch file to all 80 PCs and then VNC into each one to make the change.
Although we could easily get those knocked out in a day, there has to be an easier way to do this.
While I'm asking, what would be the correct syntax to accomplish this locally from my PC using netsh -r computername?