Delaying logon scipts until the a network is present

Posted on 2005-05-12
Last Modified: 2012-05-05

Does anyone know how to put a delay into a Windows Logon Script.

The reason being, I have installed a wireless solution and whenever a users logs in via the wireless the script runs and fails due to there being no network present. Is there a delay I could add or anyway other way that I could set the script to, only, run once a network connection is present??

I am using a cmd file that points to a KIX.32 script running from our AD netlogon share.


Question by:CreamyG
    LVL 5

    Expert Comment

    You could use sleep.exe, but that isn't really efficient way of doing it.  You could build in some logic into the script to detect whether the connection is there, and then execute the sleep command.
    LVL 3

    Accepted Solution

    it sounds like you have a local batch file that runs to initiate a login script file on your server.  i recommend not using a local login script for this user.  for your wireless user(s) place your login script file in %systemroot%\SYSVOL\sysvol\domain_name\scripts on your DC. Then in AD, select the user, then properties, and under the profile tab enter the name of the script file.  then the script will only run when the network is connected and the user logs into it.  

    this is how we do it for all of our staff wireless and non-wireless.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now