From: M Shafaat on 31 Mar 2010 09:02 Hi, I wish to disable and enable my Local Area Connection using scripts. Can anyone suggest a very simple script or command line using netsh etc for doing this? My main objective is to prevent virus attacks from the Internet when the machine is idle by disconnetcting my PC from the home network. Best regards, M Shafaat
From: Mayayana on 31 Mar 2010 12:06 | My main objective is to prevent virus attacks from the Internet when the | machine is idle by disconnetcting my PC from the home network. | This doesn't exactly answer your question, but there are some other options: 1) Most firewalls have an option to block all traffic. Usually there's a popup menu in the systray. (If you're using the Windows firewall then you really should replace it. Like most things from Microsoft, it's designed to be too confusing to use except in the way that MS wants you to use it. And that means allowing outbound traffic.) 2) I run my connection through a UPS, which I have on my desk. I just physically pull the plug when I'm not going online for a period of time. I used to do the same when I used a phone modem. The UPS has sockets to route the wire through it, so it's easy to access. (Of course that won't help if you're using a wireless connection.) I like the idea of fully blocking inbound connections, but I do it even more for outbound connections. It's amazing how sleazy corporate software has become. It just can't be trusted not to call home. Even Firefox, if allowed, will go to its "first run" page to log your IP if you don't block it. A few years ago I was installing Norton SW 2003 for a friend and it started calling home, so I pulled the plug on the network. After that the install worked OK, but it stalled for a couple of minutes while it tried in vain to get online. What was really irksome was that the installer never said it was trying to get online. It was designed to be dishonest.
From: M Shafaat on 31 Mar 2010 17:20 Hi, Thank you for your reply and good points of view. But as you say I still don't get the answer to my question. So I ask you or others to give your advice. Regards M Shafaat "M Shafaat" <poppy2(a)comhem.se> wrote in message news:u1HZ2JN0KHA.2196(a)TK2MSFTNGP05.phx.gbl... > Hi, > I wish to disable and enable my Local Area Connection using scripts. Can > anyone suggest a very simple script or command line using netsh etc for > doing this? > > > > My main objective is to prevent virus attacks from the Internet when the > machine is idle by disconnetcting my PC from the home network. > > > > Best regards, > M Shafaat > > >
From: The Pinky on 31 Mar 2010 18:23 maybe you have success with the DOS Command: ipconfig /release and ipconfig /renew if you retrieve your IP Adresse by DHCP this should disconnect you and after that reconnect... you could execute that Dos Command in a vbs script... "M Shafaat" <poppy2(a)comhem.se> schrieb im Newsbeitrag news:u1HZ2JN0KHA.2196(a)TK2MSFTNGP05.phx.gbl... > Hi, > I wish to disable and enable my Local Area Connection using scripts. Can > anyone suggest a very simple script or command line using netsh etc for > doing this? > > > > My main objective is to prevent virus attacks from the Internet when the > machine is idle by disconnetcting my PC from the home network. > > > > Best regards, > M Shafaat > > >
From: BigDaddyJim on 1 Apr 2010 07:45
On Mar 31, 5:23 pm, "The Pinky" <Edi...(a)g-websys.de> wrote: > maybe you have success with the DOS Command: > ipconfig /release > and > ipconfig /renew > if you retrieve your IP Adresse by DHCP this should disconnect you and after > that reconnect... > you could execute that Dos Command in a vbs script... > > "M Shafaat" <pop...(a)comhem.se> schrieb im Newsbeitragnews:u1HZ2JN0KHA.2196(a)TK2MSFTNGP05.phx.gbl... > > > > > Hi, > > I wish to disable and enable my Local Area Connection using scripts. Can > > anyone suggest a very simple script or command line using netsh etc for > > doing this? > > > My main objective is to prevent virus attacks from the Internet when the > > machine is idle by disconnetcting my PC from the home network. > > > Best regards, > > M Shafaat- Hide quoted text - > > - Show quoted text - You might try a script with the DEVCON command-line exe. http://support.microsoft.com/kb/311272 It'll allow you to enable/disable hardware of a specific ID in a script. Jim |