Solved

Win2003 Server Run Scheduled Task on Network Service Account

Posted on 2008-06-10
8
8,320 Views
Last Modified: 2012-05-05
Hi,

I'm running an exe under a scheduled task.  It is throwing an error (Event ID:1517) and the error message is suggesting running the task as Network Service or Local Service.  How do you setup a windows Scheduled Task to run daily using the Network Service account?

Here's the error message:
Event Type:      Warning
Event Source:      Userenv
Event Category:      None
Event ID:      1517
Date:            6/10/2008
Time:            3:02:41 PM
User:            NT AUTHORITY\SYSTEM
Computer:      CRSDEV04
Description:
Windows saved user CRSDEV04\CRSFiles2HseSen registry while an application or service was still using the registry during log off. The memory used by the user's registry has not been freed. The registry will be unloaded when it is no longer in use.

 This is often caused by services running as a user account, try configuring the services to run in either the LocalService or NetworkService account.

Thanks for any assistance,
Paul
0
Comment
Question by:RoadhouseBlues
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 22

Expert Comment

by:Paka
ID: 21758006
How do you setup a windows Scheduled Task to run daily using the Network Service account?
Create a network account.  Bring up the scheduled task's properties and enter the network account in the Run as box.  If it still throws an exception, the network account probably doesn't have adequate permissions.   In this case, try adding the network account to the local admininistrators group on the machine the scheduled task is running on.
0
 

Author Comment

by:RoadhouseBlues
ID: 21758896
hmm... That was not quite my question.  I have setup the scheduled task.  it is running "successfully" but is throwing the above warning.  I was wondering, and maybe just said it badly, whether there was a way to do what the warning message suggests.  Run the task under the Network Service account.  I don't see anyway to do this using the Task Scheduler wizard (because it needs the password to Network Service account.  My understanding is that this is a randomly generated password.)

Also, the process is throwing a warning, not an exception.

Not one to skip advice, I did try adding the user account I'm currently using to the Local Admins group. and re-ran the task.  However, this did not make the warnings go away.  Are these warnings (Event ID:      1517) serious?  (I'm a developer not a system admin.)

Thanks again,
Paul
0
 
LVL 22

Accepted Solution

by:
Paka earned 200 total points
ID: 21759020
Try using "NT Authority\System" for the user account and no password.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 28

Expert Comment

by:Michael Pfister
ID: 21759120
0
 

Author Comment

by:RoadhouseBlues
ID: 21759758
mpfister,

Thanks for the suggestion.  Installnig UHPClean elminated the Event ID 1524 warnings.  It also reduced the time the system needd(?) to unload the profile from about 10 minutes to less than 5 seconds.

Next step is to try Paka's suggestion above.

Thanks for all the quick responses.  It is really appreciated!

Paul
0
 

Author Comment

by:RoadhouseBlues
ID: 21760361
Paka,

Thanks for your suggestion.   I tried running the task under the "NT Authority\System" account.  I am no longer seeing the Event ID: 1517 warnings.  Success!

Being paranoid for a moment: Is this the solution, or does this point to a different problem?  Is there a "best practice" regarding when to use the NT Authority\System account to run a scheduled task?  
The task is question runs daily, uses Oracle's SQLPLUS to run a query against the database, and generates an XML file.  The XML file is written to a folder local to the server the scheduled task runs on.

Thanks again,
Paul
0
 
LVL 22

Expert Comment

by:Paka
ID: 21760817
No need to be paranoid.  The system account is used for just that purpose.  If you look at many of the services on a typical server - you'll see that they also run under this context.
0
 

Author Closing Comment

by:RoadhouseBlues
ID: 31465895
Thanks Paka.  This is the kind of help I was hoping to get when I signed up for EE.  Not being a sys admin, this kind of resource is invaluable and will help my team to better prepare our development solutions for our production environment.
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question