This might be of interest to further exploit windows 7 networks... http://www.codeproject.com/KB/IP/usenetworklist.aspx?PageFlow=FixedWidth Michael Chinn PC Support Office Information and Communications Technology Great Barrier Reef Marine Park Authority 2-68 Flinders Street PO Box 1379 Townsville Qld 4810 Ph: 07 4750 0855 Fax: 07 4772 6093 email: michael.chinn at gbrmpa.gov.au Visit us at: http://www.gbrmpa.gov.au ============================================================================= If you have received this transmission in error please notify us immediately by return email and delete all copies. Any unauthorised use, disclosure or distribution of this email is prohibited. ============================================================================= -----Original Message----- From: wpkg-users-bounces at lists.wpkg.org [mailto:wpkg-users-bounces at lists.wpkg.org] On Behalf Of Aaron Bliss Sent: 08 September 2010 01:16 To: wpkg-users at lists.wpkg.org Subject: [wpkg-users] wpkg, windows 7 and wireless Hi all, I thought I would post to the list the solution that we have come up with when dealing with laptops that only connect via wireless AP's. Since wireless connections are generally managed by the end user, we implemented the a batch script that is called via a scheduled task. The scheduled task is executed using the built in SYSTEM account at startup. Here is the logic behind the batch script: 1. set the wpkg service to start type of manual 2. pause for 10 seconds 3. check for a route to www.yahoo.com. 4. If one does not exist, it will repeat steps 2 and 3 5. If a route exists (meaning that in the case of a wireless user they have connected to an access point AND authenticated to the AP), the script will break out of the loop and start the wpkg service Here is the code: @echo off @rem set wpkg service to manual sc config WpkgService start= demand @rem wait until there is a reliable network connection :waitloop echo Waiting for wireless.... Ping 127.0.0.1 -n 10 > nul ping www.yahoo.com |find /i "reply" >nul if errorlevel 1 goto waitloop :connected @rem then wait for 5 minutes, to ensure all related networking components are now working properly ping 10.0.3.1 -n 1 -w 300000 @rem finally start the wpkg service net start WpkgService ------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users at lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users |