Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: 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 darkassain
25 Feb 2009
Published by

How to Workaround the Wireless Connection Issue in Standby

information   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   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   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
download

Wifi (workaround).zip
2. Extract them and you should have two files like this...
Name:  files.PNG
Views: 8358
Size:  11.4 KB
3. Open the Task Scheduler
NOTE: Pressing start and typing task should be enough as seen here.
Name:  task.png
Views: 941
Size:  101.6 KB
4.Once you have it open click on the import task...
-taskwindow.png
5.Find the Wifi(stop).xml and click open...
this will open and will show the task...
Name:  Wifi(stop).PNG
Views: 961
Size:  86.5 KB

A) Click on OK.
6.Do the same for Wifi(restart).xml
Name:  Wifi(start).PNG
Views: 885
Size:  54.7 KB

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 http://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 http://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





12 Oct 2009   #1
UncleLeo

7 Pro RTM
 
 

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 System SpecsSystem Spec
Comment

 Wireless Connection Workaround for Standby or Hibernation




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Wireless Connection Not Responding After Hibernation
My Windows 7 computer was originally setup for manual connection to a network. A couple months ago, without setting it otherwise, it started connecting automatically to our network. Now, I don't have a problem with that and I can set it to manual again if I want, but I just thought I would...
Network & Sharing
BSOD After each time I turn on my computer from standby or hibernation
It is very annoying as my computer can not successfully be in sleep for or hibernation mode for long periods of time. Once I turn it on, it either loads into windows (usually the case), then it shortly freezes and shows the following error message. Once in a while it would go straight to the...
BSOD Help and Support
StandBy / Hibernation off - Computer still powers off.
Hi all, I am using Win7. I occasionally use powercfg -h off to disable Standby / Hibernation. Most often if I am running some long-time activities in the background where I am away from the screen. I noticed, that the computer still powers down (not shutdown). This is confirmed with Event...
Performance & Maintenance
BSOD When Turning Computer Back On After Hibernation or Standby
Hi, I have a one year old Lenovo Thinkpad Edge E420s. I'm using Windows 7 Ultimate x64 with an Intel i5-2410M @2.30GHz. I bought the Ultimate OS retail as an upgrade to the Windows 7 Home edition. Recently, when I put my computer in hibernate or standby, when I turn the computer back on, it...
BSOD Help and Support
Failure to enter Standby or Hibernation, stops at black screen
Hi again, I have another very nasty issue... My system fails to enter Standby or Hibernation. When I start the process, the monitor fades out to black - as normal - and the system begins to disable devices. I can see i.e. that an attached USB-Stick gets turned off. Unluckily, Windows seems to...
BSOD Help and Support
Windows enters standby/hibernation even with power settings adjusted.
Even with my power settings adjusted, my computer will still periodically go into sleep every half an hour to an hour or so without attendance. Its annoying mainly because I play xbox live, which is bridged through my pc, and I get disconnected because of this. Any reasons why it could be doing...
General Discussion

Our Sites

Site Links

About Us

Find 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 08:03.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App