Yes, but the right choice depends on what "something", what tool you use to write your script as well as your requirements for flexibility, security etc. To run a task on a Windows machine without anybody being logged on, you must run as a service and you have 2 main options:
a) Use the built in "Task Scheduler" service. That service can schedule and execute commands (such as a VB script, exe-files etc). It runs in a shared service process (svchost.exe) by default under the "Local System" account, which means it can do almost anything on the local machine, but nothing on the network or remotre machines.
b) Program your own service. You can easilly do this using Visual Studio and .NET since there's a project template and a service installer that hides all the dirty details about creating and installing the service so you can focus on the service logic. This option gives you almost unlimited control over the programming logic as well as the security settings (your service runs under an account of your choice and your service can do whatever you allow that account to do)
This posting is provided "AS IS" with no warranties, and confers no rights. MTC ISV Team [MSFT] |