Yes, you could remove the default gateway and/or the DSN entry,
using netsh.exe, provided that the user has sufficient privileges to
run the command. Below is a link and some examples for the command.
http://support.microsoft.com/default...b;EN-US;242468
For a Static IP use:
netsh interface ip set address "Local Area Connection" static 125.187.7.56
255.0.0.0
netsh interface ip set address local static 192.168.1.1 255.255.255.0
And for DHCP use:
netsh interface ip set address "Local Area Connection" DHCP
netsh interface ip set address name="Local Area Connection 2" source=static
addr=192.168.10.10 mask=255.255.255.0 gateway=none
netsh interface ip delete dns name="Local Area Connection 2" addr=all
netsh interface ip set dns name="Local Area Connection 2" source=static
addr=192.168.20.20
netsh interface ip add dns name="Local Area Connection 2" addr=192.168.30.30
netsh interface ip set address name="Local Area Connection X"
gateway=10.0.0.1 gwmetric=1 source=static addr=192.168.0.10
mask=255.255.255.0
netsh interface ip set address name="Local Area Connection" source=static
addr=192.168.44.1 mask=255.255.255.0 gateway=192.168.44.254 gwmetric=1
netsh interface ip set dns name="Local Area Connection" source=static
addr=192.168.44.254
"Steve Allen" <(E-Mail Removed)> wrote in message
news:06F832D0-A87D-4E0B-A94F-(E-Mail Removed)...
> Thank you for the tip but alas, it seems I must have XP for SteadyState.
>
> Question: if I use static IP addresses on all workstations,
> Can I build a batch file or script that would delete the tcp/ip entry for
> the default gateway and have it run when a particular user logs in?
>
> I am thinking that would allow LAN access but not to the internet.
>
> "Pegasus (MVP)" wrote:
>
>>
>> "Steve Allen" <(E-Mail Removed)> wrote in message
>> news:44AFFCA1-F383-423D-BD9C-(E-Mail Removed)...
>> >I want to add a second user to my workstation and grant normal network
>> > (peer-to-peer) access, but I don't want them to have access to the
>> > internet.
>> > I haven't found an easy way to do this, I've tried looking at
>> > permissions
>> > but
>> > I'm missing something.
>> >
>>
>> Windows SteadyState might be for you although I don't know if
>> it works under Win2000.
>> http://www.microsoft.com/windows/pro...s/default.mspx
>>
>>
>>