Creating my first task

Sometimes some problems with permissions may arise. Suppose that your service is running under the account A, but you want to backup the files that belong to the account B. If A has administrator powers, everything is fine then, BUT if A is a regular user, then we have a problem....or not. :-)

You can just impersonate the user B in this task. That way the task will be executed as B, and then you will have access to B's files. When the tasks ends, the program will again run under the user A.

 

 

Back      Tutorial       Next

© 2000-2006 by Luis Cobian
All rights reserved