N1K Posted March 23, 2006 Posted March 23, 2006 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...
jondercik Posted March 23, 2006 Posted March 23, 2006 write one script that stops the internet connection sharing service at 7 and write one that starts it at 10
N1K Posted March 23, 2006 Author Posted March 23, 2006 write one script that stops the internet connection sharing service at 7 and write one that starts it at 10Yeah, I figured that out by myself, but I'm not very familiar with writing scripts, could you please help me out?
net_user Posted March 23, 2006 Posted March 23, 2006 (edited) create a file called stop_ics.batnet stop sharedaccessschedule task it to run at 7pm.....(this stops the service)create 2nd file called start_ics.batnet start sharedaccessschedule task it to run at 10pm.....(this starts the service) Edited March 23, 2006 by net_user
nmX.Memnoch Posted March 23, 2006 Posted March 23, 2006 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now