Home All Groups Group Topic Archive Search About
Author
6 Jul 2005 9:46 PM
Anthony Sneed
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?

Author
7 Jul 2005 3:20 AM
Dave Patrick
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

Show quoteHide quote
"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?
Are all your drivers up to date? click for free checkup

Author
7 Jul 2005 2:54 PM
Mitch Tulloch
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?

--
Cheers,
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

Show quoteHide quote
"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?
>
>
Author
7 Jul 2005 4:45 PM
Anthony Sneed
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.
Author
7 Jul 2005 7:25 PM
Mitch Tulloch
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?

--
Cheers,
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

Show quoteHide quote
"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.
>
>
>
Author
8 Jul 2005 4:14 PM
Anthony Sneed
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
Author
8 Jul 2005 8:31 PM
Mitch Tulloch
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!

--
Cheers,
Mitch Tulloch
[MVP--Windows Server]
http://itreader.net



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
>
>

Bookmark and Share