Hi Gemat,
Yes. I wrote a VBScript for you. Need admin rights on the remote PC and
Windows XP firewall may block the RPC calls - so turn that off if its not
working (on remote machine that is).
Read in a list of remote PC's into this script and loop through them to do
more than one.
Enjoy!
' A script by CreateWindow May 2007
'
http://justpageprobe.com
'
' No Copyright - free for all!
'
' Changes IP Gateway setting on
' remote Windows computers
' Can change other IP stuff too if you add them.
'
strComputer = "remotehost.yourdomain.com"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
strGateway = Array("10.0.10.42")
For Each objNetAdapter in colNetAdapters
errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask)
errGateways = objNetAdapter.SetGateways(strGateway, strGatewaymetric)
If errGateways = 0 Then
WScript.Echo "The gateway settings are updated."
Else
WScript.Echo "Some kind of error - settings could not be changed."
End If
Next
CreateWindow
http://mymessagetaker.com
Stop using those paper phone message pads
make the computer work for you.
http://justpageprobe.com
The FREE Web page utility you always wanted.
Monitor your enterprise Web Servers.
Keep your router connected.
Email your IP to where you need it.
"Gemat - PCSC computer shop" <Gemat - PCSC computer
(E-Mail Removed)> wrote in message
news:24C8D7ED-4757-415A-AFC1-(E-Mail Removed)...
> Is it possible to change the gateway of a client PC, part of a workgroup,
> remotely from another PC that belongs to the same workgroup??