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