I apologize in advance for the length of this post but I tried to provide all relevant information.
Windows Server 2003 Standard Edition.
Windows 7 Pro running on a laptop.
Drive mapping accomplished with logon script configured in group policy.
Logon script called using launchapp.wsf in order to avoid the elevated token issue introduced with UAC.
We've used this logon script configuration with many clients in mixed environments (Server 2003/2008, Windows XP/Vista/7) without any issues. As a side note, launchapp.wsf includes code to differentiate between XP and Vista/7 as well as elevated/non-elevated users. (Thanks to Michael Murgolo: http://blogs.technet.com/b/elevationpowertoys/archive/2010/05/25/uac-logon-scripts-and-the-launchapp-wsf-workaround.aspx
One of our clients informed us that network drives were missing. We've narrowed it down to the scheduled task created by launchapp.wsf - it will not run on a laptop if the laptop is running on batteries. We could manually change that setting in the task but the task will get overwritten by launchapp.wsf at the next logon so there's no point.
We've thought of a couple of options but haven't had any luck in determining if they are even possible. If anyone could help out, I'd greatly appreciate it:
Include the setting for the task to run despite laptop running on batteries when launchapp.wsf creates the task. However, there doesn't appear to be a command line switch for task power options, so there doesn't seem to be a way to do this.
Use group policy (or local policy on the laptop) to change the default settings used when tasks are created but in 2003 group policy, the task scheduler settings don't include power options.
Tell the user to plug-in before loging on. We've done this but we know there will be times that they forget.
As a work-around, we've placed a shortcut to the script on their desktop for them to run if they don't see any network drives after logging on.
Again, sorry for the lengthy post. If anyone has encountered this problem and has a solution, please let me know.
Thanks in advance.