PC Review


Reply
Thread Tools Rate Thread

Automate changing password for scheduled tasks on multiple servers

 
 
Marc
Guest
Posts: n/a
 
      25th Jan 2006
I have several hundred servers in the same domain. Each server has the same
scheduled task. I need to change the service acct. password on each server.

After doing some searching and even talking to MS, I haven't found what I'm
looking for. Plus, I suck at scripting.

So..I'm going to use schtasks to write a batch file. However, schtasks only
shows how to do one server at a time. My thought is to write a call in the
script to point to a .txt file which has a list of all the servers I want to
change.

Can someone point me to an example of a script like this or offer up any
suggestions or samples.

I know this issue comes up a lot, yet there doesn't really seem to be
anything concrete. Thanks.


 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      25th Jan 2006
@echo off
if {%1}=={} @echo SchtasksPwd FileName&goto :EOF
if not exist %1 @echo SchtasksPwd %1 does not exist.&goto :EOF
setlocal
set file=%1
for /f "Tokens=*" %%s in ('type %file%') do (
schtasks /S %%s /TN "My Task: / RP NewPassWord
)
endlocal



On Wed, 25 Jan 2006 10:19:45 -0600, "Marc" <(E-Mail Removed)> wrote:

>I have several hundred servers in the same domain. Each server has the same
>scheduled task. I need to change the service acct. password on each server.
>
>After doing some searching and even talking to MS, I haven't found what I'm
>looking for. Plus, I suck at scripting.
>
>So..I'm going to use schtasks to write a batch file. However, schtasks only
>shows how to do one server at a time. My thought is to write a call in the
>script to point to a .txt file which has a list of all the servers I want to
>change.
>
>Can someone point me to an example of a script like this or offer up any
>suggestions or samples.
>
>I know this issue comes up a lot, yet there doesn't really seem to be
>anything concrete. Thanks.
>


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled tasks copied between servers often do not run =?Utf-8?B?R3JlZw==?= Windows XP General 5 20th Aug 2006 04:00 AM
Automate changing password for scheduled tasks on multiple servers Marc Microsoft Windows 2000 1 26th Jan 2006 12:10 AM
Changing the Scheduled Tasks on another PC Sandra Microsoft Windows 2000 1 3rd May 2005 11:38 PM
Scheduled Tasks-Automate? Purchasing Microsoft Windows 2000 Applications 4 7th Oct 2004 03:59 PM
Scheduled Tasks scheduled time automatically changing Chris Windows XP Performance 0 24th Dec 2003 08:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 AM.