ok...
if the wireless is on and the logonscript runs but the drives don't map, you need to figure out why the drives don't map instead of making more logic into your script.

do a simple logging in your script, so you will see why they won't map and examine it... something like:
 Code:
use s: "\\ourserver\share"
shell "%comspec% /c echo " + @date + " mapping s: (error:" + @error + ") >> %temp%\logon.log"
use b: "\\ourserver\share_b"
shell "%comspec% /c echo " + @date + " mapping b: (error:" + @error + ") >> %temp%\logon.log"
_________________________
!

download KiXnet