![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2006
Posts: 2
Rep Power: 0
![]() |
How to create a schedule task using the NT Authority\System account
I need to creates a schedule task using the NT Authority\System account which should have administrator rights and that does not have a password during application installation. This allows me to create a batch file that I can have people run on their computers without having to walk them thru the schedule task wizard.
Under Win 2000 I tried "AT" command , it only can schedule a jon run once, I need to schedule a jon run repeatly. Under WinXP I tried "schtasks", there is a problem that the task will show as running but nothing happens. If I don’t end the task it continues to show status of running until the default 72 hours expires. If I open up Task Manager, click on Process tab, I can see the job (what the schedule task is suppose to run) is running but its showing CPU usage as zero. I need a way, just like the Norton Antivirus does, creates a schedule task to detect network connection using NT Authority\System account, and it does work under both Win2000 and Win XP Does anyone kown how to do it ? Thannks |
|
|
|
|
|
#2 |
|
Expert Programmer
|
You might want to consider VB.NET as it has a lot of native useful features relating to security, including in-built thread-level impersonation, permission management and directory services. I would therefore recommend writing a system service, they run independently of the shell and non-interactively and support running as System (though the person installing the service must have Administrator privileges on the local machine).
However it is bad to run a service as an admin account unecessarily for various reasons, and anyway in a domain context System is not a privileged nor authenticated user. LocalService should have the necessary rights for what you want to do, with enhanced security, and a simple timed thread pinging some server regularly should work to check if internet access is available. Could you explain exactly what this is for - this sounds somewhat like a trojan. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|