See this Script Vault post for a solution. It may need to have the tsLib updated to the version that uses SchTasks, but should otherwise work.
Basic operational model:
- Login script performs the detection (file exists?)
- If file doesn't exist, admin task is required. Use the API to deliver a request to the central server (drop a file)
- The file contains the originating host, user info, and the task ID. The server has a service that monitors for these requests, maps the Task ID to a script.
- The service pushes the files to the workstation using admin rights, then creates a scheduled task using admin credentials (but no schedule). It then initiates the scheduled task via Run Now.
In many cases, the process initiates the admin task so quickly that it starts before the login script ends.
Glenn
_________________________
Actually I
am a Rocket Scientist!