Solved

Logon Script won't run if network isn't available

Posted on 2013-11-25
9
898 Views
Last Modified: 2013-12-06
My logon script set through GPO will not run if the network connection isn't available on startup.

For example, if the user logs off and logs back on, the script will run.  If the user waits a long time on initial startup before logging in, the script will run   However, if the user quickly logs in on initial startup before the network is available, the script will not run at all.  (the script is a batch file)

I would rather not run scripts synchronously, because that slows things down particularly for laptop users when they are off the network.  Is there a way to force Windows to cache the script locally to start before the network is up?

The server environment is Windows 2008 R2 and the workstations are Windows 7.
0
Comment
Question by:nnolte99
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 5

Expert Comment

by:rl3
ID: 39675531
If I'm understanding your post then the logon script is local to the AD server and not the workstation your user(s) would be logging into.  So if the network is not available the script is not accessible, because its on the server not the workstation.
0
 

Author Comment

by:nnolte99
ID: 39675546
Yes. That way when I update the script I only have to update the script in one location.
0
 
LVL 10

Expert Comment

by:tmoore1962
ID: 39675555
Are the systems connecting wirelessly?  I would set the local policy on the systems to 'wait for network before logging on'  when they are connected to domain the script should then run ok.  GPEDIT.MSC  Computer Config - admin templates - system - logon - always wait for network... to enable.
0
 

Author Comment

by:nnolte99
ID: 39675574
The systems are, for the most part, connecting through wire.  

Re your suggestion, what if the user is a laptop user working remotely. Won't that cause the person to hang for a long time.
0
Do email signature updates give you a headache?

Are you constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

 
LVL 5

Expert Comment

by:rl3
ID: 39675838
0
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
ID: 39677345
There are ways, yes.
We can by a policy require that the network needs to be initialized before logon: http://technet.microsoft.com/en-us/magazine/gg486839.aspx - that is something else to running scripts synchronously.

You could also use a scheduled task instead of the common logon script. Deploy a task that gets triggered at logon of any user. Set a delay of 10/20 seconds inside that task and you are done.
0
 
LVL 10

Expert Comment

by:tmoore1962
ID: 39681631
No it making the computer wait for network connection setting just makes it wait any detected network to get connected and then continue on the logon process as before,
0
 
LVL 53

Expert Comment

by:McKnife
ID: 39682278
What should that mean? Come again, please.
He wrote: "if the user quickly logs in on initial startup before the network is available, the script will not run at all" - that tells me that waiting is exactly what should be done here and the policy waits for the NIC to signalize it's connected.
0
 

Author Closing Comment

by:nnolte99
ID: 39701915
Scheduled task assigned through AD is the way to go.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now