Re: Networking
"roland5575" <roland5575@discussions.microsoft.com> wrote in message
news
DED24C0-3117-42D8-9710-9C9A244F0239@microsoft.com...
> Hi Everybody,
> I have set up a home LAN using 4 PCs (Three XP and one Vista) How do i
> remove internet access on one of the XP machines in such a way that i can
> turn on access as required. This machine is in my daughters bedroom and i
> wish to supervise access to the net
>
> Thank you.
>
Here is another method that relies on two shortcuts that you create on your
own desktop. They invoke the following batch file:
c:\Windows\InternetAccess.bat
=====================
@echo off
if /i "%1"=="" goto :eof
if /i "%1"==on set GW=192.168.1.1
if /i "%1"==off set GW=192.168.1.200
c:\Windows\psexec.exe \\Daughter netsh interface ip set address
name="wireless network connection 3" gateway=%GW% gwmetric=1
pause
The first shortcut ("Disable Internet") should use the following command
line:
c:\Windows\InternatAccess.bat off
and the other
c:\Windows\InternatAccess.bat on
In Line 3 of the above batch file you must set the correct "Default Gateway"
address. It's the IP address of your router.
In Line 4 of the above batch file you must set an incorrect "Default
Gateway" address. Any address that is unused will do.
In Line 5 you must replace the word "Daughter" with the NetBIOS name of your
daughter's PC. You can see what it is by typing this command from a Command
Prompt at ***her*** machine:
set Computer{Enter}
Line 5 requires psexec.exe. You can download it from
www.sysinternals.com.
Note that this is a very long line. It starts with "c:\" and it ends with
"=1".
This method requires some patience to configure and test but it is very
quick to use.