Discussions specific to the Microsoft Hyper-V hypervisor
Post Reply
emcotechs
Lurker
Posts: 2
Liked: never
Joined: Mar 09, 2016 4:29 pm
Contact:

Pre/Post Script Failure

Post by emcotechs » Jan 24, 2017 2:29 pm

Case # 01814926
Case # 02035892

We have two Server 2012 R2 Hyper-V hosts. One of the backup jobs seems to be causing the Virtual Machine Management Service (VMMS) to fail which causes the job to fail. Neither Microsoft nor Veeam support have been able to help.

I have tried the following pre job script:

c:\users\emco\downloads\RestartVMMS.bat

@ECHO OFF
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "C:\Users\emco\Downloads\RestartVMS.ps1"
TIMEOUT /20

This is the PowerShell script called above:

Get-Service -Name VMMS -ComputerName Hyper-V1 | Restart-Service
Get-Service -Name VMMS -ComputerName Hyper-V2 | Restart-Service

Running the script from the command line from the backup server works. The backup job says the pre job script was successful but VMMS is still in a failed state and the job fails.

Veeam support sent me here. Any suggestions?

Michael Montz
EMCO Technologies, Inc.

foggy
Veeam Software
Posts: 18366
Liked: 1575 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre/Post Script Failure

Post by foggy » Jan 24, 2017 4:09 pm

Hi Michael, dos the script work if you try to run it under Veeam service account?

emcotechs
Lurker
Posts: 2
Liked: never
Joined: Mar 09, 2016 4:29 pm
Contact:

Re: Pre/Post Script Failure

Post by emcotechs » Jan 24, 2017 4:47 pm

I succeeds with the credentials that the backup jobs runs with if that is what you mean.

foggy
Veeam Software
Posts: 18366
Liked: 1575 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Pre/Post Script Failure

Post by foggy » Jan 25, 2017 11:51 am

Please loot into this thread for other hints.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests