Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Vista Task Scheduler Issue

Reply
Thread Tools Display Modes

Vista Task Scheduler Issue

 
 
bazman1uk
Guest
Posts: n/a

 
      03-26-2008

I have a VB6 app that at certain times, needs to read/write to the
registry and other times shell to a command prompt, run diskpart to
change the active partition from 1 to 3 then reboot into the 3rd
partition. This all works perfectly in XP but in Vista there is a
problem.

I managed to get the app working fine by using Vista's Task Schedule to
launch the app on logon with elevated permissions, unfortunately this
account was an Administrator account and when I logged on as a Standard
User it didn't work at all.

When I ran the app manually from Explorer with Runa As Administrator,
it started OK, but when used it wouldn't even allow me to read the
registry. Access denied.

The interesting thing was that I set the Task to run at logon for Any
User, however it only seems to run when logged in as the specificed
admin account I setup the Task Schedule with.

I then decided to modify the Task to use a specific account to run and
I selected the Administrator account ( I had already enabled this)
instead of the specified admin account.

The Task now didn't run for the specific admin account, but only for
the Administrator account.

Basically I need Task Scheduler to run for ANY account, no matter what
type, at logon and to run this app with full admin rights.

Any ideas??

Baz


--
bazman1uk
Posted via http://www.vistaheads.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Windows Vista Performance 2 05-03-2008 02:02 PM
task scheduler doesn't start delayed task wuschba Windows Vista General Discussion 6 07-26-2007 08:06 AM
Task Scheduler: Repeat Task and Duration kirsch59 Windows Vista General Discussion 6 07-11-2007 09:01 PM
Task scheduler problem : task do not close Junkyard Engineer Windows Vista General Discussion 0 06-07-2007 01:51 AM
Vista - Sleep/network/task scheduler issue David Qunt Windows Vista General Discussion 3 02-10-2007 03:16 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59