|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Scheduled Task AccountI would like to run a scheduled task under the LocalService account, but the
scheduled tasks wizard prompts for the password. When I leave the password blank, it does not let me specify the LocalService account. Is there anyway I can configure a scheduled task to run under the LocalService account? By default AT jobs run under the system account. From a command prompt;
AT /? for the syntax. -- Show quoteHide quoteRegards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect "Anthony Sneed" wrote: |I would like to run a scheduled task under the LocalService account, but the | scheduled tasks wizard prompts for the password. When I leave the password | blank, it does not let me specify the LocalService account. Is there anyway | I can configure a scheduled task to run under the LocalService account? Hi Dave, I think Anthony is actually asking something different, he says he
wants to run a task as LOCALSERVICE not LOCALSYSTEM. I'm not sure there's any way to do that, and I'm not sure most tasks running as LOCALSERVICE would even run properly because of the very low privileges of this identity (at least interactive tasks probably won't run under LOCALSERVICE). Anthony, why exactly do you want to run your task as LOCALSERVICE? -- Show quoteHide quoteCheers, Mitch Tulloch, MVP Windows Server ======================================= website: http://www.mtit.com my blog: http://itreader.net This message is provided "as is" with no warranties, and confers no rights "Dave Patrick" <mail@Nospam.DSPatrick.com> wrote in message news:uvP%23ULqgFHA.2484@TK2MSFTNGP15.phx.gbl... > By default AT jobs run under the system account. From a command prompt; > AT /? > for the syntax. > > -- > Regards, > > Dave Patrick ....Please no email replies - reply in newsgroup. > Microsoft Certified Professional > Microsoft MVP [Windows] > http://www.microsoft.com/protect > > "Anthony Sneed" wrote: > |I would like to run a scheduled task under the LocalService account, but > the > | scheduled tasks wizard prompts for the password. When I leave the > password > | blank, it does not let me specify the LocalService account. Is there > anyway > | I can configure a scheduled task to run under the LocalService account? > > Ah yes, the reason I would like to run a scheduled task under the
LocalService or NetworkService account is that the following warning is generated in the application event log whenever the task is run. "VSBackup" is the account under which the task is running. Event Type: Warning Event Source: Userenv Event Category: None Event ID: 1517 Date: 7/6/2005 Time: 6:29:58 PM User: NT AUTHORITY\SYSTEM Computer: SM-CABU-STUAP1 Description: Windows saved user SM-CABU-STUAP1\VSBackup 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. Anthony, what program is using the VSBackup account? I assume some kind of
network backup app? ;-) If that's the case, you may want to contact the vendor of that app to find out why these events are being logged and see what they suggest you do. Otherwise, I'm not sure this particular event indicates anything too serious unless you've noticed some functionality breaking with your applications...have you noticed any specific problems related to this event? -- Show quoteHide quoteCheers, Mitch Tulloch, MVP Windows Server ======================================= website: http://www.mtit.com my blog: http://itreader.net This message is provided "as is" with no warranties, and confers no rights "Anthony Sneed" <AnthonySn***@discussions.microsoft.com> wrote in message news:D8E6EE27-EE92-4BB6-93EE-B1F390A9C434@microsoft.com... > Ah yes, the reason I would like to run a scheduled task under the > LocalService or NetworkService account is that the following warning is > generated in the application event log whenever the task is run. > "VSBackup" > is the account under which the task is running. > > Event Type: Warning > Event Source: Userenv > Event Category: None > Event ID: 1517 > Date: 7/6/2005 > Time: 6:29:58 PM > User: NT AUTHORITY\SYSTEM > Computer: SM-CABU-STUAP1 > Description: > Windows saved user SM-CABU-STUAP1\VSBackup 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. > > > Hello Mitch,
Thanks for your reply. Actually, I am running a C# console app I wrote in order to backup VM's running as Virtual Servers. I'm not sure why the warning is generated, but it does not appear to have any adverse effect. I suppose my question is more academic in nature, whether it is possible to run a scheduled task under LocalService or NetworkService, as the warning suggests. It's not a problem it it's not possible, but then the text of the warning would appear somewhat misleading :). - Anthony Hi Anthony, it may be worth investigating why this error occurs in the first
place. It may be that your custom app has handles open on the Registry when it shuts down, see http://tinyurl.com/42kj6 for some info on this and event 1517. Also see http://support.microsoft.com/?id=837115. Unfortunately I'm not a coder so I can't give you any more insight on this, but maybe someone else around here can ;-) Good luck! Show quoteHide quote "Anthony Sneed" <AnthonySn***@discussions.microsoft.com> wrote in message news:85A0649E-EEE0-4996-A8C0-88F97C7F4B46@microsoft.com... > Hello Mitch, > > Thanks for your reply. Actually, I am running a C# console app I wrote in > order to backup VM's running as Virtual Servers. I'm not sure why the > warning is generated, but it does not appear to have any adverse effect. > I > suppose my question is more academic in nature, whether it is possible to > run > a scheduled task under LocalService or NetworkService, as the warning > suggests. It's not a problem it it's not possible, but then the text of > the > warning would appear somewhat misleading :). > > - Anthony > >
Other interesting topics
Unidentified Computer in Domain
Preventing Traffic Sniffing Network account continuously locks out! /PAE with Windows 2003 Service Pack 1 Cluster Licensing Questions Researching Windows 2003 Server auditing Import users from tab delimited file More than a domain controller VPN Issue after applying SP1 for 2003 Server |
|||||||||||||||||||||||