Connecting Tech Pros Worldwide Help | Site Map

Schedule Task - Interactive and Specific Account

  #1  
Old March 19th, 2009, 11:52 AM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,450
Provided Answers: 56
My server is running Windows 2000 (All latest SPs & updates) and I need to start a job in the early hours with a specific network account and in interactive mode.

I have been using the AT command for many years now to schedule jobs when required. One of the restrictions of this interface is that there is no way to specify a user account for a particular job. I looked at the Job Scheduling command (Scheduled Tasks) and, while it has the ability to specify an account that the specific job uses, it doesn't seem able to specify that the job should be interactive.

Can someone please either confirm this as the case or explain to me where I'm going wrong. Perhaps provide some instructions on how to accomplish both.
  #2  
Old March 19th, 2009, 12:21 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,450
Provided Answers: 56

re: Schedule Task - Interactive and Specific Account


I dug further into the Help system and discovered a bullet point hidden away :
Quote:
Originally Posted by Help
If a user whose account a task is set to run in is not logged on at the time the task is scheduled to run, the task runs but is not visible.
I assume this determines the interactive status on its own. Not a concept I'm familiar with.

I can continue with this, but if anyone can confirm or deny my current understanding that would still be appreciated.
  #3  
Old March 19th, 2009, 01:05 PM
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,450
Provided Answers: 56

re: Schedule Task - Interactive and Specific Account


I did some testing and found that even running as the same account as the job schedule, it ran silently and invisibly. Great for submarines, but not much help when trying to develop a process.

Unless I hear anything to the contrary, I'll assume the only way to do this is with the /Interactive flag of the AT command and just set all scheduled jobs to start as that rather than as SYSTEM. Less safe conceptually, but I think I can get away with it in this case. The server is fairly dedicated to a single bit of software anyway.
Reply

Tags
account, interactive, schedule, task


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird DTS Problem KR answers 2 August 18th, 2006 04:45 PM
Starting University COSC and learning JAVA, advice please :D David Van D answers 1 February 4th, 2006 02:45 AM
Javascript Best Practices Document v1.0 Matt Kruse answers 136 November 23rd, 2005 03:30 AM
xcopy command failed in sql server 2000 as scheduled task xo55ox answers 6 July 20th, 2005 04:46 AM
PHP and MySQL developer wanted in Montreal Benoit St-Jean answers 0 July 17th, 2005 09:47 AM