Standalone backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)
Post Reply
Brudertac
Novice
Posts: 6
Liked: never
Joined: Aug 13, 2015 12:39 pm
Full Name: Danny Wackes
Contact:

Prevent VEB from opening after backup

Post by Brudertac »

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
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by Vitaliy S. »

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!
Brudertac
Novice
Posts: 6
Liked: never
Joined: Aug 13, 2015 12:39 pm
Full Name: Danny Wackes
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by Brudertac »

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.
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by Dima P. » 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!
SaschaH
Influencer
Posts: 12
Liked: 7 times
Joined: Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by SaschaH » 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: Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by SaschaH » 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
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by billbo »

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?
SaschaH
Influencer
Posts: 12
Liked: 7 times
Joined: Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by SaschaH »

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
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by billbo » 1 person likes this post

Thanks very much for your help! I will test this!
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by Dima P. »

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.
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by billbo »

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?
SaschaH
Influencer
Posts: 12
Liked: 7 times
Joined: Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by SaschaH » 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: Aug 20, 2015 10:23 am
Full Name: Sascha Hoehne
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by SaschaH »

Did you get it to work, Billbo?
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by billbo »

No, unfortunatly not.
The task works if I trigger it manually.
But it gets not triggered automatically.
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEEAM Window from opening after Backup

Post by Dima P. » 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!
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEB from opening after backup

Post by billbo »

Is that issue solved in the latest version from yesterday?
Thanks!
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEB from opening after backup

Post by Dima P. »

Hi guys,

Yup - the described behavior should be corrected in the latest update. Kindly, check it and let us know how it works now.
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEB from opening after backup

Post by billbo »

No, I cannot confirm. After daily backup before it sends the device to sleep, the VEB window is still present. Also after resume, the window is still open.
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEB from opening after backup

Post by Dima P. »

Just to make sure we are on the same page - are you using the latest minor update installed manually (1.1.2.119)? Thanks.
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEB from opening after backup

Post by billbo »

Yes, I confirm. It is on 1.1.2.119
After the backup the countdown window pops up together with the VEB control panel window.
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEB from opening after backup

Post by Dima P. »

Thanks. Can I ask you to open a support case and post case ID to this thread - I want to share your case with the QA team ASAP.
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEB from opening after backup

Post by billbo »

How can I do that? Can you do that for me, since you can talk to them internally and the problem is well known?
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEB from opening after backup

Post by Dima P. »

The problem was: Control Panel was opened after the computer was placed into sleep by Endpoint’s post job activity. In latest update once the timer reaches zero value it hides the control panel prior putting the computer to sleep.

Since it should be fixed we need the application logs to check what exactly is not working. Kindly, open a support case via Endpoint’s Control Panel > Support Technical Support. Logs are uploaded automatically.
billbo
Influencer
Posts: 11
Liked: 2 times
Joined: Sep 03, 2015 8:11 am
Contact:

Re: Prevent VEB from opening after backup

Post by billbo » 1 person likes this post

Ok, I deinstalled VEB completly and did a new install. Now it works as you describe it.
Everything fine now!
It seems that there went something wrong during the update...
Dima P.
Product Manager
Posts: 14726
Liked: 1707 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Prevent VEB from opening after backup

Post by Dima P. »

Thanks for the heads up – its highly appreciated! I let QA know about the behavior you described.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 21 guests