Basically i want to schedule a disable command on a network at a given time and enable another after that.
Is it possible to do so ??
Printable View
Basically i want to schedule a disable command on a network at a given time and enable another after that.
Is it possible to do so ??
(Assuming you are running Windows): Create two scripts (.BAT/.CMD file), with the following contents:
<Disable script>
Code:
netsh interface set interface “Local Area Connection” DISABLED
<Disable script>
Code:
netsh interface set interface “Local Area Connection” ENABLED
Rename "Local Area Connection" to match the interface you want to manage
Put these scripts in Task Scheduler
Step 1: Determine Your NIC Name. Go to a command prompt and type the following command.
Step 2: Create Tasks To Enable and Disable The NIC.
Step 3: Task - General Settings.
Step 4: Task - Action - Create.
Step 5: Task - Action - Review.
Step 6: Task - Scheduler.
Step 7: Task - Test.