Jump to content

WinXP ICS - limited access


Recommended Posts

Posted

Ok, here's the situation..

My friend asked me to connect 3 of his computers, set up ICS on computer with an Internet Access.

Other two computers must be able to connect to internet through this computer, but they shouldn't be able to connect between 7-10 p.m. each day...

What is the best possible solution to do this, can it be done with some .bat or .vbs scripts which would enable/disable ICS at specified times through scheduled task?

10Q all...


Posted
write one script that stops the internet connection sharing service at 7 and write one that starts it at 10

Yeah, I figured that out by myself, but I'm not very familiar with writing scripts, could you please help me out?

Posted (edited)

create a file called stop_ics.bat

net stop sharedaccess

schedule task it to run at 7pm.....(this stops the service)

create 2nd file called start_ics.bat

net start sharedaccess

schedule task it to run at 10pm.....(this starts the service)

Edited by net_user
Posted

Just a slight suggestion though...I would use the .cmd extension instead of .bat. CMD files are the native format for NT based OSes. While BAT and CMD files are very similar there are some differences between the two. :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...