Wireless Connection Workaround for Standby or Hibernation

    Wireless Connection Workaround for Standby or Hibernation

    Wireless Connection Workaround for Standby or Hibernation

    How to Workaround the Wireless Connection Issue in Standby
    Published by
    Designer Media Ltd


    How to Workaround the Wireless Connection Issue in Standby

       Information
    This is for the people that like have experienced problems with Wireless Connections not being dropped correctly when in standby. So I thought of a way to make sure that the Wireless Adapter would drop the connection before the standby and bring it up after (so that the standby would not be made too long or the startup too long either) so this is a workaround until MS or someone else will provide a solution to this mess
       Note
    This might make your your time to standby or hibernation and wake-up time a little longer (since we are disabling a piece of hardware and re-enabling it at startup). Also you must initiate the stand-by/Hibernation as a part of the administrator group (if you have in-depth knowledge on the task scheduler you can customize it to your liking but that is beyond the scope of this Tutorial)
       Warning
    As i said you must be logged as part of the administrators, since most of you testing W7 are doing so (using the account created at the install this should be no problem), but you must also at wakeup log either to the same account or a account with administrative privileges (being a part of the Administrators Group)




    Here's How:
    1. Download these xml files which were created just for this problem
    2. Extract them and you should have two files like this...
    Wireless Connection Workaround for Standby or Hibernation-files.png
    3. Open the Task Scheduler
    NOTE: Pressing start and typing task should be enough as seen here.
    Wireless Connection Workaround for Standby or Hibernation-task.png
    4.Once you have it open click on the import task...
    Wireless Connection Workaround for Standby or Hibernation-taskwindow.png
    5.Find the Wifi(stop).xml and click open...
    this will open and will show the task...
    Wireless Connection Workaround for Standby or Hibernation-wifi-stop-.png

    A) Click on OK.
    6.Do the same for Wifi(restart).xml
    Wireless Connection Workaround for Standby or Hibernation-wifi-start-.png

    A) When your done click on OK.
    7. as a bonus here is the readout of the xml files...
    Wifi(stop).xml
    Code:
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2009-02-25T12:48:57.6969679</Date>
        <Author>Darkassain https://www.sevenforums.com</Author>
        <Description>This Task  will disable the Wifi in this Computer, so that on Start-up the second task (Wifi (restart)) will start the network adapter and you will regain your wireless connection capabilities.</Description>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="System"&gt;&lt;Select Path="System"&gt;*[System[Provider[@Name='Microsoft-Windows-Kernel-Power'] and (EventID=42)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
        </EventTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <GroupId>Administrators</GroupId>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>true</StopOnIdleEnd>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>false</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>C:\Windows\System32\netsh.exe</Command>
          <Arguments>interface set interface name="Wireless Network Connection" admin=DISABLED</Arguments>
        </Exec>
      </Actions>
    </Task>
    Wifi(restart).xml
    Code:
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2009-02-25T12:25:46.7721402</Date>
        <Author>Darkassain https://www.sevenforums.com</Author>
        <Description>This Task will enable your Wireless Adapter so that  you can regain your Wireless Capabilities without restarting your computer.</Description>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Microsoft-Windows-Diagnostics-Performance/Operational"&gt;&lt;Select Path="Microsoft-Windows-Diagnostics-Performance/Operational"&gt;*[System[Provider[@Name='Microsoft-Windows-Diagnostics-Performance'] and (EventID=300)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
        </EventTrigger>
        <BootTrigger>
          <Enabled>true</Enabled>
        </BootTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <GroupId>Administrators</GroupId>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>true</StopOnIdleEnd>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>false</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>C:\Windows\System32\netsh.exe</Command>
          <Arguments>interface set interface name="Wireless Network Connection" admin=ENABLED</Arguments>
        </Exec>
      </Actions>
      </Task>
    thats it,
    DA







  1. Posts : 1
    7 Pro RTM
       #1

    Thanks for the tutorial. Is there any way to set this task to run silently?

    Whenever it runs I see a blank "taskeng.exe" command line window hang for awhile. I tried editing your task properties and adding "/silent" to the commands you run on netsh.exe. but it doesn't work.

    Any way to stop this annoying "taskeng.exe" process from flashing on my screen?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:29.
Find Us