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 Windows 7 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: 8180
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: 742
Size:  101.6 KB
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...
Name:  Wifi(stop).PNG
Views: 768
Size:  86.5 KB

A) Click on OK.
6.Do the same for Wifi(restart).xml
Name:  Wifi(start).PNG
Views: 690
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 for2: Wireless Connection Workaround for Standby or Hibernation
Windows 7 Tutorial Category
Wireless Connection Not Responding After Hibernation Network & Sharing
BSOD After each time I turn on my computer from standby or hibernation BSOD Help and Support
StandBy / Hibernation off - Computer still powers off. Performance & Maintenance
BSOD When Turning Computer Back On After Hibernation or Standby BSOD Help and Support
Failure to enter Standby or Hibernation, stops at black screen BSOD Help and Support
Windows enters standby/hibernation even with power settings adjusted. General Discussion
Ethernet connection lost after standby Network & Sharing

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 06:54 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33