Solved

logon script

Posted on 2011-02-23
6
667 Views
Last Modified: 2012-05-11
I have a windows XP laptop that is having issues with the logon script.  I have a windows server 2003 DC where the logon scripts reside.  Every other PC runs fine, so far no issues with the logon scripts, besides this one particular one.  
When I run the logon script manually:  start -> run and type the path of my logon script location, and run the script, it works fine, so I'm thinking that it's an issue with timing, the logon script runs before another file needs to run or a service starts up.  

So is there a way to delay the logon script from running, at least by 5 or 10 seconds after the user logs on to windows XP?
0
Comment
Question by:afacts
  • 2
  • 2
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
4runnerfun earned 250 total points
Comment Utility
If there aren't any other problems, then you can delay your script by pinging local host. Ping 15times..

ping 127.0.0.1 -n 15
0
 

Author Comment

by:afacts
Comment Utility
I'm lost, so do I enter that command somehwere in the script?  
0
 
LVL 12

Assisted Solution

by:Sommerblink
Sommerblink earned 250 total points
Comment Utility
From the 2003 Resource Toolkit, there is an executable called sleep.exe. (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd)

You can pass this an integer and it will pause.

Otherwise, there is a timeout command in Windows Vista/7.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 3

Expert Comment

by:4runnerfun
Comment Utility
Yes, wherever you want the pause, enter that command.
0
 
LVL 12

Expert Comment

by:Sommerblink
Comment Utility
Afacts: You would enter in the command the line above the command that is failing, if you believe that there is some sort of timeout issue.
0
 

Author Closing Comment

by:afacts
Comment Utility
Thanks guys for your help, but actually that wasn't the problem.   After I looked at the script, I looked where it was crashing on, and for some reason, it didn't like the network drive mapped letter, so I just changed it from I to Z, and it started working just fine.  Somehow, the system was creating the I drive as a "disconnected network drive", and it was just cuasing problems.

Thanks again for the quick response.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn about cloud computing and its benefits for small business owners.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 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

15 Experts available now in Live!

Get 1:1 Help Now