Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 10th, 2006, 7:53 AM   #1
jerryleo
Newbie
 
Join Date: Jan 2006
Posts: 2
Rep Power: 0 jerryleo is on a distinguished road
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
jerryleo is offline   Reply With Quote
Old Jan 10th, 2006, 12:39 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:07 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC