Results 1 to 8 of 8
  1. #1
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Scheduled Tasks and changing passwords

    Although our lan is backed up every day, we have one user with a local backup requirement, so we use a small utility called Backup Magic (excellent incidentally). This is run automatically when the user logs in, but we also wish to run it every day at 13:15 when the user is normally at lunch.

    To do this, we used Windows Scheduled Tasks, and for a month this has worked fine - UNTIL the lan setup required the user to change his password (we do this for everyone on a monthly basis). As the Scheduled Task requires UserId and Password to run, it has now stopped working as the user's password has changed!

    How can we AUTOMATICALLY change the Scheduled Task so that it always contains the user's current password? I believe that it is possible to do this via VB or VBA but lack the necessary experience to do this (although I do have VBA experience and VB6 installed). Or is there another way? It seems that you may be able to run a Scheduled Task without UserId and Password, but I think this will then run foul of permissions on the areas of the backup area on a standalone pc that is used for the backup.

    Can anyone help? I'd prefer not to have to get the user to make a manual change to the Scheduled Task every month.

    Thanks.

  2. #2
    3 Star Lounger
    Join Date
    Nov 2004
    Location
    Nottingham, Nottinghamshire, United Kingdom
    Posts
    326
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Scheduled Tasks and changing passwords

    Howdy Keith! How's life on the bottom floor?! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    How about setting up a DOS batch backup job that runs at startup?
    <font color=448800><font face="Comic Sans MS"><big>Lyra J </font color=448800></font face=comic></big>
    <img src=/S/flags/UK.gif border=0 alt=UK width=30 height=18> Ducking the arrows in Robin Hood country <IMG SRC=http://www.wopr.com/w3tuserpics/Lyra_J_sig.gif ALT="No, Admins, no! I'm sorry, okay!" title="No, Admins, no! I'm sorry, okay!">

  3. #3
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Scheduled Tasks and changing passwords

    Yes, as I said in the original post, we DO run the backup automatically on startup, but we also want to run it again at 13:15 every day. This is done (at the moment) by a Scheduled Task, and this is what the problem is when the user's password changes. Thanks.

  4. #4
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,571
    Thanks
    5
    Thanked 1,056 Times in 925 Posts

    Re: Scheduled Tasks and changing passwords

    How about running the task as the local 'administrator' or a local user with what ever rights are required? That way you can set it so the password is very strong but does not change.

    Joe
    Joe

  5. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Scheduled Tasks and changing passwords

    Keith

    The standard method to achieve this on an NT-type domain is to set up a service userid with a non-expiring password, which is used to run scheduled tasks. {Ours was called SHED99 (since all service userids had a "99" suffix). (Example anecdote!)}

    If your LAN is not on a domain, then this would be more difficult...

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  6. #6
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Scheduled Tasks and changing passwords

    Thanks for the suggestion, and it's probably the way we'll go. The 'administrator' id is about the only one we have that doesn't change monthly!

  7. #7
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Nottingham, UK, Nottinghamshire, England
    Posts
    190
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Scheduled Tasks and changing passwords

    Thanks for the idea! Trouble is, we'd run into opposition from the corporate Access Control Group if we did this. By and large, they don't like non-expiring passwords. The only one that is currently allowed is 'administrator', so I think this is the one we'll have to use. Thanks again.

  8. #8
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Scheduled Tasks and changing passwords

    We didn't permit non-expiring passwords, except for service tasks. Some systems-type software requires that it has a service-type userid for its own use. We made the passwords so utterly unguessable and complex that systems administrators had to write them down somewhere immensely secret...

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •