Prevent VEB from opening after backup

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Prevent VEB from opening after backup

Veeam Logoby Brudertac » Sun Aug 16, 2015 10:20 am

Hi!

First, let me say Thank you for this great Backup Program!

Using 1.1 on Windows 10. I have a Backup Job running. It is set up to send the PC to Sleep after the Backup. This is working fine.
But on each Resume the Backup Window is open. So it has a nice Layout :), but i do not need it to see after a successfully Backup.

Is there a way to stop that?

Thanks again.
Brudertac
Brudertac
Novice
 
Posts: 6
Liked: never
Joined: Thu Aug 13, 2015 12:39 pm
Full Name: Danny Wackes

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby Vitaliy S. » Sun Aug 16, 2015 7:29 pm

Hi Danny,

Let me check that with the QA team tomorrow. Do you have the UI opened as well when backup job is triggered?

Thanks!
Vitaliy S.
Veeam Software
 
Posts: 19558
Liked: 1102 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby Brudertac » Sun Aug 16, 2015 7:32 pm

Hi Vitaliy,

thanks for your reply.
The UI is always closed. Sometimes the System is Sleeping and wakes up for Backup and sometimes it is already running. But the UI i closed when the Backup starts.
Brudertac
Novice
 
Posts: 6
Liked: never
Joined: Thu Aug 13, 2015 12:39 pm
Full Name: Danny Wackes

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby Dima P. » Tue Aug 18, 2015 1:55 pm 1 person likes this post

Hello Danny,
It is by design in the existing version (1.1). However, we will correct this in one of the upcoming releases. Thanks for the input!
Dima P.
Veeam Software
 
Posts: 6242
Liked: 440 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby SaschaH » Thu Aug 20, 2015 11:00 am 3 people like this post

Hi,

it don't like the window being open after a scheduled backup as well, but I still want to know that the job ran successfully...
Inspired by DonFibos Email Notification I'm doing this using Powershell:

  • check via scheduled task for VEB events with EventID 190 and get the reasonstring (Success, Fail, ...)
    (Instead of get-eventlog I use get-winevent to just read the last entry and ignore other events)
  • read timestamp from last ID 110 and 190 to calculate the duration
  • send a silent push notification to my phone (Reason, Start, End, Duration)
  • close the VEB window
  • send the PC back to sleep - which is done by VEB
If you just want to close the window, this will do the trick:
Code: Select all
Get-Process Veeam.EndPoint.Tray | ? { $_.CloseMainWindow() | Out-Null }

Make sure to run this as the logged on user and not with high privileges!

Let me know if you need a hand.

Take care
Sascha
SaschaH
Influencer
 
Posts: 12
Liked: 7 times
Joined: Thu Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby SaschaH » Thu Aug 20, 2015 8:27 pm 1 person likes this post

You might want to try this:

Save this snippet to VEBClose.ps1:
Code: Select all
$VEBStatus   = get-winevent -FilterHashtable @{Logname='Veeam Endpoint Backup';ID=190}  -MaxEvents 1| Format-List -property Message | out-string | Foreach {$_.Trim()} | where {$_ -ne ""}
if ($VEBStatus.contains("Success")) {
     Get-Process Veeam.EndPoint.Tray | ? { $_.CloseMainWindow() | Out-Null }}
 } else {   
    [System.Windows.Forms.MessageBox]::Show("Something went wrong - check VEB!`n`n$VEBStatus","Ooops!",[System.Windows.Forms.MessageBoxButtons]::OK,[System.Windows.Forms.MessageBoxIcon]::Stop)
 }


Create a scheduled task that runs as current user, add a "event" trigger (Veeam Endpoint Backup, EventID 190) and let it start "powershell" with argument "<path>\VEBClose.ps1.
If the backup was successfull, the VEB window will be closed, otherwise a messagebox come up and VEB stays open.

That's a quick and dirty approach and I didn't test it thoroughly. :roll:

Sascha
SaschaH
Influencer
 
Posts: 12
Liked: 7 times
Joined: Thu Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby billbo » Thu Sep 03, 2015 8:13 am

This does not work for me. The task is not triggered after a backup is completed.
When can we expect a new version where this is fixed?
billbo
Influencer
 
Posts: 11
Liked: 2 times
Joined: Thu Sep 03, 2015 8:11 am

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby SaschaH » Thu Sep 03, 2015 9:13 am

Hi Billbo,

well, I found out that the windows will not be closed sometimes for some reasons... could be the "waiting for suspend" message.
There a two ways to workaround this:
Instead of an event trigger, you could use "On workstation unlock" or (that's how I do it now) schedule the task to run "On a schedule" a while after the backup has finished and the workstation is sleeping again and -that's the trick- set "Run task as soon as possible after a scheduled start is missed" on the settings tab. This will fire the script right after you wake up the computer.
(e.g. backup runs at 4am for 30-60 mins, set the script to run at 5:30am - whenever you reactivate your computer after 5:30am the window will be closed)

Let me know if I can help you any further.

Sascha
SaschaH
Influencer
 
Posts: 12
Liked: 7 times
Joined: Thu Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby billbo » Thu Sep 03, 2015 9:15 am 1 person likes this post

Thanks very much for your help! I will test this!
billbo
Influencer
 
Posts: 11
Liked: 2 times
Joined: Thu Sep 03, 2015 8:11 am

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby Dima P. » Thu Sep 03, 2015 9:18 am

Thanks billbo!
Don’t forget to share the result of your tests with the community. I bet guys will be happy to hear any feedback on these scripts.
Dima P.
Veeam Software
 
Posts: 6242
Liked: 440 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby billbo » Fri Sep 04, 2015 3:47 am

That did unfortunatly not work.
The window is still there, after I wakeup the computer....
What are your exact settings on the settings page of the task?
billbo
Influencer
 
Posts: 11
Liked: 2 times
Joined: Thu Sep 03, 2015 8:11 am

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby SaschaH » Fri Sep 04, 2015 9:02 am 1 person likes this post

Hi Billbo,

hmm... did you test the script when logged in and with an open VEB window? If that works, run the script from the scheduler and see if that will also work.

You can download my exported task here: Dropbox

Be sure to change the user and path to your script! BTW: best way to launch the PS is using a batch or VBS.

Good luck! ;)
Sascha
SaschaH
Influencer
 
Posts: 12
Liked: 7 times
Joined: Thu Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby SaschaH » Mon Sep 07, 2015 8:11 pm

Did you get it to work, Billbo?
SaschaH
Influencer
 
Posts: 12
Liked: 7 times
Joined: Thu Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby billbo » Tue Sep 08, 2015 2:59 am

No, unfortunatly not.
The task works if I trigger it manually.
But it gets not triggered automatically.
billbo
Influencer
 
Posts: 11
Liked: 2 times
Joined: Thu Sep 03, 2015 8:11 am

Re: Prevent VEEAM Window from opening after Backup

Veeam Logoby Dima P. » Thu Sep 17, 2015 11:40 am 1 person likes this post

Hello folks,
But on each Resume the Backup Window is open. So it has a nice Layout :), but i do not need it to see after a successfully Backup.

This behavior is going to be corrected in the upcoming minor update: VEB will close the Control Panel prior putting your computer to sleep. Thanks for all your feedback!
Dima P.
Veeam Software
 
Posts: 6242
Liked: 440 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Next

Return to Veeam Agent for Windows



Who is online

Users browsing this forum: No registered users and 10 guests