Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 08-26-2007, 06:50 PM
ramzi.audeh@gmail.com
Tablet PC Guest
 
Posts: n/a
task scheduler: run when logged in

I had been successfully using jt.exe to schedule tasks from my Vb
app. Suddenly it stopped working under XP when using the "Run when
logged in" option. When I check the status to see why it didn't run,
it says "SCHED_E_ACCOUNT_INFORMATION_NOT_SET". I'm wondering if an XP
update came out which killed that functionality? I tried using
schtasks but that doesn't not even have that option, so I'm required
to enter a password or run as SYSTEM. I tried the Win32_ScheduledJob
API also, but that doesn't give me the ability to do it either. Is
there currently any way to schedule a task from a VB application and
have it run when logged in (not requiring a password)? I don't mind
prompting the user for their Windows password if I have to, but in
some cases the user doesn't have one set, and I don't want them to
have to set one just to be able to use my program. I see tons of
other programs use the scheduler without asking for a password. How
can I do this?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 08-26-2007, 06:50 PM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 08-27-2007, 02:10 AM
spamsucks@tiscali.co.uk
Tablet PC Guest
 
Posts: n/a
Re: task scheduler: run when logged in

On 27 Aug, 03:38, ramzi.au...******.com wrote:
> I had been successfully using jt.exe to schedule tasks from my Vb
> app. Suddenly it stopped working under XP when using the "Run when
> logged in" option. When I check the status to see why it didn't run,
> it says "SCHED_E_ACCOUNT_INFORMATION_NOT_SET". I'm wondering if an XP
> update came out which killed that functionality? I tried using
> schtasks but that doesn't not even have that option, so I'm required
> to enter a password or run as SYSTEM. I tried the Win32_ScheduledJob
> API also, but that doesn't give me the ability to do it either. Is
> there currently any way to schedule a task from a VB application and
> have it run when logged in (not requiring a password)? I don't mind
> prompting the user for their Windows password if I have to, but in
> some cases the user doesn't have one set, and I don't want them to
> have to set one just to be able to use my program. I see tons of
> other programs use the scheduler without asking for a password. How
> can I do this?


If you're wanting to launch an app when the user logs on and have it
run in their security context why not just stick a shortcut in their
Startup directory or add a command to the Run key in the registry?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Task under Task Scheduler b11_ Windows Vista 0 08-08-2007 03:20 PM
task scheduler doesn't start delayed task wuschba Windows Vista 7 07-26-2007 12:12 AM
Task scheduler won't run task from hibernate Nick Henderson Windows Vista 0 07-21-2007 12:30 PM
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista 6 07-11-2007 01:10 PM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista 0 06-06-2007 06:00 PM


All times are GMT -8. The time now is 09:17 AM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0