Hello all,

first of all, I don't think that I am the first person on this planet having the issue I'll describe below, I tried to search for solutions in the board, but was not clever enough to find it... Sorry for that.

My problem: we move to Windows 7 from XP and as you all know, the kix login script on windows 7 doesn't run with elevated right causing problems with our legacy scripts during some file operations that need admin rights on users workstation. We need to rework the complete login process in a way that such kind of operations won't needed in the near future, but as a workaround I'm searching for a solution to run the login script with elevated rights.

I found one: creating a scheduled tasks that triggers the login script at users logon, having the possibility to run the script with elevated rights a perfect solution! But it's causing me some headache...

The login script should run under the user account of the user currently login in. To be able to this in a generic way, I added a AD group as user account to run the script under. All my users are member of this group. And local admins on the workstations they're login. This means that each time any user that is member of this group logs on to the machine, the login script should run with admin rights.

I tested this and it worked great! Until i rebooted the machine... Then, the script wasn't fired anymore at login. I found an error in the task scheduler history: Task Scheduler failed to load tak "my Login" at service startup. Additional Data: Error Value 214744189.

When I remove the group and replace it by a dedicated user account and do tests with this configuration, everything seems to work. So the group seems to cause the issue with the task scheduler at startup of the machine.

Now my question: Do you know a way to schedule a login script with task scheduler and trigger it to run under the user account of the current user with elevated rights?

many thanks for your feedback!