When using a vRanger backup using quiesced snapshots and the vzShadow_x64 or vzShadow_x86 to truncate logs, Exchange logs are purged before the backup starts and may be in an inconsistent state when the backup completes.
The vzShadow executable is called twice during a backup cycle, once when the snapshot is created and once when the snapshot is removed. During the quiesce/unquiesce cycle, VMware tools will run all files in the C:\Program Files\VMware Tools\backupscripts.d directory, passing each file a parameter indicating whether this is a freeze or a thaw cycle. The freeze.bat file as initially provided does not check the parameter so vzShadow is run both times.
Move your original freeze.bat file into another directory. This is because VMware tools will run ALL scripts in the directory in alphabetical order. We only want to run a single script. Copy and paste the text in the Additional Information box below into a new file. The very first line of the new file should be @echo off. For consistency, we suggest that you call the new file freeze.bat. Open the original freeze.bat file in Notepad. This file will probably have a single line in it. Copy that line and paste it into the new freeze.bat file to replace the sample line immediately after the line that says ":thaw". Save this as the new freeze.bat file and test it with a backup.
@echo off
if "%1%" == "" goto noParam
if "%1%" == "freeze" goto Freeze
if "%1%" == "thaw" goto thaw
if "%1%" == "freezeFail" goto freezefail
goto wrongParam
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center