Pre/Post Script Failure

Hyper-V specific discussions

Pre/Post Script Failure

Veeam Logoby emcotechs » Tue 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.
emcotechs
Lurker
 
Posts: 2
Liked: never
Joined: Wed Mar 09, 2016 4:29 pm

Re: Pre/Post Script Failure

Veeam Logoby foggy » Tue Jan 24, 2017 4:09 pm

Hi Michael, dos the script work if you try to run it under Veeam service account?
foggy
Veeam Software
 
Posts: 14741
Liked: 1079 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson

Re: Pre/Post Script Failure

Veeam Logoby emcotechs » Tue Jan 24, 2017 4:47 pm

I succeeds with the credentials that the backup jobs runs with if that is what you mean.
emcotechs
Lurker
 
Posts: 2
Liked: never
Joined: Wed Mar 09, 2016 4:29 pm

Re: Pre/Post Script Failure

Veeam Logoby foggy » Wed Jan 25, 2017 11:51 am

Please loot into this thread for other hints.
foggy
Veeam Software
 
Posts: 14741
Liked: 1079 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson


Return to Microsoft Hyper-V



Who is online

Users browsing this forum: No registered users and 9 guests