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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top