Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How can i change schedule task admin password

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,42423
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How can i change schedule task admin password
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 How can i change schedule task admin password - 1/24/2007 2:13:18 AM   
  avipenina

 

Posts: 102
Score: 0
Joined: 4/24/2006
Status: offline
Hi,

i need a script that run on specific servers that will change the password on schedule task that runs under the local administrator.
my problem is that i'm going to change my local admin password and i've more then 100 servers and i need something that will change
the administrator schedule task password automatically.

how i do it? mybe something through the registry on any other suggestions.

Thanks
 
 
Post #: 1
 
 RE: How can i change schedule task admin password - 1/24/2007 9:54:38 AM   
  dm_4ever


Posts: 2721
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Have you taken a look at the command SchTasks.exe on WinXP box?

SCHTASKS /parameter [arguments]

Description:
   Enables an administrator to create, delete, query, change, run and
   end scheduled tasks on a local or remote system. Replaces AT.exe.

Parameter List:
   /Create         Creates a new scheduled task.

   /Delete         Deletes the scheduled task(s).

   /Query          Displays all scheduled tasks.

   /Change         Changes the properties of scheduled task.

   /Run            Runs the scheduled task immediately.

   /End            Stops the currently running scheduled task.

   /?              Displays this help/usage.

Examples:
   SCHTASKS
   SCHTASKS /?
   SCHTASKS /Run /?
   SCHTASKS /End /?
   SCHTASKS /Create /?
   SCHTASKS /Delete /?
   SCHTASKS /Query  /?
   SCHTASKS /Change /?


SCHTASKS /Change [/S system [/U username [/P password]]] {[/RU runasuser]
   [/RP runaspassword] [/TR taskrun]} /TN taskname


Description:
   Changes the program to run, or user account and password used
   by a scheduled task.

Parameter List:
   /S       system           Specifies the remote system to connect to.

   /U       username         Specifies the user context under
                             which the command should execute.

   /P       password         Specifies the password for the given
                             user context.

   /RU      username         Changes the user name (user context) under
                             which the scheduled task has to run.
                             For the system account, valid values are
                             "", "NT AUTHORITY\SYSTEM" or "SYSTEM".

   /RP      password         Specifies a new password for the existing
                             user context or the password for a new
                             user account. Password will not effect for
                             the system account.

   /TR      taskrun          Specifies a new program that the scheduled
                             task runs. Type the path and file name of
                             the program.

   /TN      taskname         Specifies which scheduled task to change.

   /?                        Displays this help/usage.

Examples:
   SCHTASKS /Change /RP password /TN "Backup and Restore"
   SCHTASKS /Change /TR restore.exe /TN "Start Restore"
   SCHTASKS /Change /S system /U user /P password /RU newuser
            /TN "Start Backup"

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to avipenina)
 
 
Post #: 2
 
 RE: How can i change schedule task admin password - 1/25/2007 4:16:19 AM   
  avipenina

 

Posts: 102
Score: 0
Joined: 4/24/2006
Status: offline
yes i've looked at this but the problem that i have a lot off should task in a lot off server and not all task run on the
administrator user, i need something that know if this task run on administrator then change the task password.

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: How can i change schedule task admin password - 1/25/2007 4:26:22 AM   
  dm_4ever


Posts: 2721
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Does the following cmd provide the info you're looking for?

schtasks /query /v:"run as user"

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to avipenina)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How can i change schedule task admin password Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts