I have a problem with a pre-freeze and post-thaw scripts on Windows 2000 Server. I have created "C:\Program Files\VMware\VMware Tools\backupScripts.d" directory and put file plsosfp012.bat in it.
The source of that bat is as follows:
echo startScript >> c:\a.txt
if "%1%" == "freeze" goto doFreeze
if "%1%" == "freezeFail" goto doFreezeFail
if "%1%" == "thaw" goto doThaw
goto EOF
:doFreeze
echo freeze >> c:\a.txt
net stop "SQL Server (SQLEXPRESS)"
goto EOF
:doFreezeFail
echo freezeFail >> c:\a.txt
net start "SQL Server (SQLEXPRESS)"
goto EOF
:doThaw
echo thaw >> c:\a.txt
net start "SQL Server (SQLEXPRESS)"
goto EOF
:EOF
After that I have initiated a snapshot with quiescence. A.txt was not created not SQL server was stopped. Of course when I try to backup this machine (with VmWare Tools enabled) bat file is not fired.
W2K is placed on ESXi4 host and has VmTools build 176525. When I do the same on W2K3Host - it works without a problem.
Documentation says that after update 3.5 U2 script should be in C:\Program Files\VMware\VMware Tools\backupScripts.d.
I have just created c:\windows\pre-freeze-script.bat and this one is working.
If you have the same problem create a Windows directory on your C drive and put pre-freeze-script.bat there.
Great troubleshooting from your side! And yes, you're absolutely right, VMware had changed the script location from update 3.5 U2 to C:\Windows\ folder
I have to correct you a bit: VmWare changed it from update 3.5U2 and later to C:\Program Files\VMware\VMware Tools\backupScripts.d. Before that update this scripts reside on C:\Windows\. After U2 they should reside in C:\Program Files\VMware\VMware Tools\backupScripts.d but for Win XP SP2 and for Windows 2000 (at least Server but I suspect Prof also) old path is a correct one.