Logging off with batch job running

S

simonc

I usually run backups using a .bat file. My backup programme requires
Administrator privileges, and normally I use Runas to run the bat file as
Administrator while logged in as a different user. The backup job runs in the
background without affecting other work. However, if I am logged on as
Administrator when I run the bat file this sets the job running in a command
window and I can't log off as the administrator and log on as a different
user without killing the back up job.

Now, following advice in this news group, I've been experimenting with
starting batch jobs invisibly with a VBScript. My question is: if I start the
batch job using vbs while logged in as Administrator can I log off leaving
the batch job running in the background or will it kill the job?
 
T

Terry R.

The date and time was 2/28/2008 8:45 AM, and on a whim, simonc pounded
out on the keyboard:

> I usually run backups using a .bat file. My backup programme requires
> Administrator privileges, and normally I use Runas to run the bat file as
> Administrator while logged in as a different user. The backup job runs in the
> background without affecting other work. However, if I am logged on as
> Administrator when I run the bat file this sets the job running in a command
> window and I can't log off as the administrator and log on as a different
> user without killing the back up job.
>
> Now, following advice in this news group, I've been experimenting with
> starting batch jobs invisibly with a VBScript. My question is: if I start the
> batch job using vbs while logged in as Administrator can I log off leaving
> the batch job running in the background or will it kill the job?


Hi Simon,

Is Fast User Switching enabled?
http://support.microsoft.com/kb/279765

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
P

Pegasus \(MVP\)

"simonc" <simonc@discussions.microsoft.com> wrote in message
news:1243079A-D814-4BEC-BEB1-61751EE2E840@microsoft.com...
>I usually run backups using a .bat file. My backup programme requires
> Administrator privileges, and normally I use Runas to run the bat file as
> Administrator while logged in as a different user. The backup job runs in
> the
> background without affecting other work. However, if I am logged on as
> Administrator when I run the bat file this sets the job running in a
> command
> window and I can't log off as the administrator and log on as a different
> user without killing the back up job.
>
> Now, following advice in this news group, I've been experimenting with
> starting batch jobs invisibly with a VBScript. My question is: if I start
> the
> batch job using vbs while logged in as Administrator can I log off leaving
> the batch job running in the background or will it kill the job?


By far the simplest method would be to invoke the batch
file with the Task Scheduler under a dedicated account.
In this way it will always run in the background, regardless
of who is currently logged on.
 

Similar threads

C
Replies
0
Views
62
Chicken_Farmer_66
C
C
Replies
0
Views
58
Chicken_Farmer_66
C
Back
Top Bottom