TechTalkz.com Home

Go Back   Windows Help & Support > Windows Server
Home Register Forum Rules FAQ User Blogs Gallery

task scheduler, wbadmin and bat files

Windows Server


Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2009, 02:30 PM   #1
Ondrej Sevecek
Guest
 
Posts: n/a
Default task scheduler, wbadmin and bat files

hello,

I have a scenario, where a customer wants me to create a scheduled task to
backup C: to a network share.

- when I start WBADMIN -backuptarget:\\10.10.0.44\backup -include:c: from a
command line, it works correctly.
- when I create a .BAT file with the same content, it works when scheduled.
- when I schedule (use the same job, just change the action) just
c:\system32\WBADMIN.EXE -backuptarget..., although it starts WBADMIN,
nothing happens then, the backup is never created and also the task is
running for ever (say 30 minutes as I sustained before stopping it).

what do I do incorrectly.

thank you.


Advertisement

  Reply With Quote
Old 05-01-2009, 04:30 PM   #2
Ondrej Sevecek
Guest
 
Posts: n/a
Default Re: task scheduler, wbadmin and bat files

this I have currently resolved by -quiet.

Another PROBLEM:
when I use -user and -password (even toghether with -quiet) the situation
repeats the same symptoms as with .BAT working ok, while direct parameter
insertion quits now quite immediatelly.

what does it mean?

o.


"Ondrej Sevecek" <ondass@community.nospam> wrote in message
news:ejVG4RmyJHA.436@TK2MSFTNGP02.phx.gbl...
> hello,
>
> I have a scenario, where a customer wants me to create a scheduled task to
> backup C: to a network share.
>
> - when I start WBADMIN -backuptarget:\\10.10.0.44\backup -include:c: from
> a command line, it works correctly.
> - when I create a .BAT file with the same content, it works when
> scheduled.
> - when I schedule (use the same job, just change the action) just
> c:\system32\WBADMIN.EXE -backuptarget..., although it starts WBADMIN,
> nothing happens then, the backup is never created and also the task is
> running for ever (say 30 minutes as I sustained before stopping it).
>
> what do I do incorrectly.
>
> thank you.


  Reply With Quote
Old 05-04-2009, 10:30 AM   #3
David Shen [MSFT]
Guest
 
Posts: n/a
Default RE: task scheduler, wbadmin and bat files

Dear Customer,

Thank you for posting in newsgroup.

According to the description, the issue seems to be related to Wbadmin
syntax in a task scheduler. It seems when you specifies -user and -password
options in the schedule task, it does not work even with the -quiet option.

Analysis and Suggestion:

Based on the research, this is expected behavior, WBADMIN by default uses
interactive output and asks user to continue. If you want to use it with
Task Scheduler i.e. in non-interactive mode; you may need to use -quiet
option. The "-quiet" option is used to run the subcommand with no prompts
to the user. It seems that we will be prompted to confirm the backup if
this option is not configured. In a scheduled task environment, as it runs
in the system account without interactive dialog, the system may wait for
the confirmation forever so the backup could not proceed.

I understand that you are not able to run the command while using -user and
-password even if with -quiet option.

Please try the following steps:

1. Please make sure the schedule task is being run at highest privileges in
the scheduled task.

2. Please kindly try to run the command in command-line; This situation can
happen if your username/password are incorrect. WBADMIN will prompt for the
credential and in non-interactive mode it will go in hung state.

For example:

1. When we specify a schedule task to start a program at a specific time
with syntax -quiet, the system will start a backup without user interaction.

Program to start: C:\Windows\System32\Wbadmin.exe

Add arguments:

start backup -backuptarget:\\192.168.1.20\backup -include:e:
-user:nwtrader\test -password:<Password> -quiet

2. However, if we specify a scheduler task to start a program at a specific
time without syntax -quiet, the system will pop up a command line which ask
us "Do you want to start the backup operation?". Thus, the backup operation
won't begin until we may input Y to confirm the operation.

Program to start: C:\Windows\System32\Wbadmin.exe

Add arguments:

start backup -backuptarget:\\192.168.1.20\backup -include:e:
-user:nwtrader\test -password:<Password>

Please note: in the example, the user account nwtrader\test need to have
backup privilege on both the source and target server.

For the syntax of Wbadmin, please refer to:

Wbadmin start backup
http://technet.microsoft.com/en-us/l.../cc742083.aspx

For your more information, I have included a blog which shows to run a
scheduled systemstatebackup in a bat file.

Windows Server 2008: Creating and Maintaining System State Backups on Your
Domain Controller
http://blogs.southworks.net/aalvarez...-2008-creating
-and-maintaining-system-state-backups-on-your-domain-controller/

Hope the information will be helpful for you.

David Shen
Microsoft Online Technical Support

  Reply With Quote
Old 05-07-2009, 09:30 AM   #4
David Shen [MSFT]
Guest
 
Posts: n/a
Default RE: task scheduler, wbadmin and bat files

Advertisement
Dear Customer,

We want to see if the information provided was helpful. Please keep us
posted on your progress and let us know if you have any additional
questions or concerns.
We are looking forward to your response.

David Shen
Microsoft Online Technical Support


Advertisement

  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help >


New To Site? Need Help?

All times are GMT. The time now is 04:25 AM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional