Tech Off Thread

6 posts

Scheduled task help!

Back to Forum: Tech Off
  • User profile image
    Jaz

    I'm not a server admin by any means, and have had little interaction with servers and logs and all that ops side stuff.  But I am now forced to interact with this and I have no clue what I'm doing.

     

    We have a bunch of Windows 2003 servers, 3 as our web servers, 2 as our DB servers, 2 as file servers.  Anyway, our DB and Web servers generate logs, and for various reasons not known to me have small hard drives, thus meaning the logs are moved off to our file servers at 1am. 

     

    The scheduled tasks seem to have mysteriously stopped working and since no one here is a sys admin, no one knows why or really how to fix it, so I said i'll take a look.  I've created new admin users with passwords everyone now knows (no one knew the previous users password) but that doesn't seem to make the job work, so perhaps i created the users wrong or not put them in the right group or... who knows.

     

    Are there any good alternatives to scheduled tasks for windows 2003,  'All' i want is a job that runs every night (on the file server), creates a mapped drive to the various web/db servers, picks up the files from a specified location, puts the files in a specified location on the file server, zips them up and goes back to sleep till the next night.

     

    any help would be great. let me know if you need any more info.

  • User profile image
    W3bbo

    Scheduled Tasks are what you're after, you just need to spend some time investigating why the job is failing. If it's been working for the past 8 years I see no reason for it to stop working without good reason.

    The Scheduled Tasks window will give you the exit code of the task which can help, also look at the Event Logs: there should be more detail in there.

    Are your servers in a Active Directory domain? If not, I strongly suggest you set one up as it massively simplifies authentication and security tasks.

  • User profile image
    davewill

    @Jaz: If a whole set of scheduled tasks stopped working at once then i'd suspect an authentication failure.

    If all the scheduled tasks were setup using the same account then check the account to see if it is a local or (as w3bbo states) an active directory account.

    If the account is a local account then they may be relying on matching user/password passthrough between machines.  Check both machines involved and make sure both sides have the same user/password combination.

    If the account is an AD account then follow the security chain to verify that the account is in at least one security chain which provides sufficient access for what the scheduled task is attempting to do on both source and destination machines involved.

    At the very least the scheduled task account will need:

    1. Ability to connect to the destination machine.

    2. Ability to traverse the destination's directory tree or whatever specifics the scheduled task does.

    3. Ability to traverse the directory tree on the source machine.

  • User profile image
    W3bbo

    , davewill wrote

    If the account is an AD account then follow the security chain to verify that the account is in at least one security chain which provides sufficient access for what the scheduled task is attempting to do on both source and destination machines involved.

    At the very least the scheduled task account will need:

    1. Ability to connect to the destination machine.

    2. Ability to traverse the destination's directory tree or whatever specifics the scheduled task does.

    3. Ability to traverse the directory tree on the source machine.

    Yep. Make sure you check Group Policy, especially User Rights Assignment. If you make any changes be sure to make them to a new GPO rather than the Default Domain GPO which should never be modified.

  • User profile image
    Jaz

    Cheers for the advice, i'll start taking a look in the morning, but even then i've never dealt with AD or group policy, no idea how our networks configured (these are all machines off site at a hosting place) or anything.

     

    As my boss said, "welcome to the real world"... the real world being one where people don't employ server admins or database admins....

  • User profile image
    W3bbo

    , Jaz wrote

    Cheers for the advice, i'll start taking a look in the morning, but even then i've never dealt with AD or group policy, no idea how our networks configured (these are all machines off site at a hosting place) or anything.

     

    As my boss said, "welcome to the real world"... the real world being one where people don't employ server admins or database admins....

    If your company would like me to serve in a consultancy role for a short period time and as a means of getting you up to speed on admin I'd be glad to do it for peanuts Smiley I can always do with CV filler material.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.