How do I control the metered data connection switch in Win 8 with a batch file?

Q

Howdy, I need someone to show me how to write a batch file that will control the metered data connection switch in Win 8. My ISP offers free data from midnight to 5 AM, but of course nobody is in the office at that time to turn off the unlimited use of data, so I need a batch file that will do it with command line. I already wrote this for a desktop to turn an Ethernet connection on and off:

@echo off
netsh interface set interface "Local Area Connection" Disable
@echo off
netsh interface set interface "Local Area Connection" Enable

I'll take the file that I create and put it into a scheduled task to run every night.

✍: Guest

A

I would suggest you to post your query in MSDN forums for better assistance on this issue. Here is the link: http://social.msdn.microsoft.com/Forums/en-US/home

Get back to us for any issues related to Windows in future. We will be glad to help you.

2014-01-24, 2357🔥, 0💬