How to run a batch file or an application prior to logon in Windows 7

I need to run a VPN client before user logon in Windows 7. Supposedly this solution worked in XP, but doesn't work for me in 7:

1. Create a batch file with the following information
@echo off
"C:\Program Files\SonicWALL\SonicWALL Global VPN Client\swgvpnclient.exe" /E YOUR CONNECTION NAME
2. Launch “gpedit.msc” and add the batch file you created to the Startup scripts
3. Restart the computer
4. Wait until the Sonicwall Client launches which will give an error since the connection is not installed under the system account
5. Install the connection and make sure it’s named the same as specified
6. Don’t see why you wouldn’t be able to just enable the connection and proceed but I restarted again anyway
7. If you so choose remove the batch file from the Startup scripts GP entry
omvicsupportAsked:
Who is Participating?
 
mark1208Connect With a Mentor Commented:
Based on PAQ 24181114, this is possible without scripts using the SonicOS Enhanced 5.0 Single Sign-On Feature Module (see http://www.sonicwall.com/us/support/230_7507.html).

Hope this helps!
-Mark
0
 
senadCommented:
How about using the scheduler ???
0
 
omvicsupportAuthor Commented:
I haven't had time to test this, but if this works as I wanted it to than great, again I have actually tested this.
0
All Courses

From novice to tech pro — start learning today.