need a script

Discussion in 'Windows Applications' started by Perris Calderon, May 8, 2009.

  1. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    my wireless card is really buggy and everytime I launch from either standby or sleep it's not working

    rather then a reboot I launch device manager, go to the wireless card, the driver, disable then enable

    that gets me back on

    can somone write a script doing all of that with one click?

    would appreciate it
     
  2. fitz

    fitz Just Floating Along Staff Member Political User Folding Team

    Messages:
    4,076
    Location:
    Chicagoland
    perris, is this an XP box? Win2003 can use the "netsh" commands in a batch file.. unfortunatly, netsh doesn't work to enable/disable the devices in XP.

    In XP, you can look at using devcon (use with caution - for help, look here)

    Either that, or you could go and write a VBScript/PowerShell script that uses WMI to call the W32_NetworkAdapter Class to disable and enable the NIC (http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272).. If I get a little time later today, I can try to whip something up - but no guarantees I'll find time today or this weekend..

    If I don't get something together, send me a PM later next week to remind me..
     
  3. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    tiz vista but I'm pretty sure xp commands will work

    thanx fitz
     
  4. falconguard

    falconguard Carbon based lifeform Political User Folding Team

    Messages:
    3,406
    Location:
    SoCal
    How about changing the power configuration in the device itself? It seems that because this is coming out of standby or sleep, that this needs to be adjusted, to wakeonLAN. you should be able to adjust the settings in the device management>device properties> advanced tab.
     
  5. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    I don't have the option for "wake on lan" anywhere I can find in the advanced tab but I did find "allow turning off to concerve power" which was clicked, I unclicked, this might be the problem and will report back when I find out if this worked or not

    "radio off if disconected" is set to 0 and I think that's right, there's nothing else I see that is germain

    ps, I searched the google and the marvel site and can't find what "turbo mode" is, some people have turned it off for other reasons, anyone know what that does?
     
  6. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    so changing "power off to save power" "almost" worked

    before when I woke the computer device manager simply said outright the device wasn't working, I then disabled and re-enabled

    now device manager "thinks" the device is working even though it can't see any networks that I know are there so I have to disable and re-enable anyway
     
  7. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    does it do the same under hibernate ?
     
  8. Xie

    Xie - geek - Subscribed User Folding Team

    Messages:
    5,275
    Location:
    NY, USA
    I believe the "turbo mode" is some kind of compression that is suppose to allow you to get more bandwidth out of the "g" band then normal. I don't think everything plays nice with it though.
     
  9. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    I did some research and it supposedly gives about 20% more bandwidth overall in best case scenario's, will try disabling that next
     
  10. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    it happens with both
     
  11. LeeJend

    LeeJend Moderator

    Messages:
    5,291
    Location:
    Fort Worth, TX
    Last edited: May 10, 2009
  12. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    thanx for the link, now to figure out how to make that script germain to my card, marvel topdog, I wrote it it just as device manager sees it but that didn't work

    I can tell by the applet activity that the device manager is trying to turn something off but can't find it
     
    Last edited: May 11, 2009