@echo off
@type \\filesrv-vm\gpowork\CloseShadowCopy.txt |find/I "[%COMPUTERNAME%]" > nul 2>&1
if %errorlevel% == 0 goto End
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer /V NoPreviousVersionsPage /T REG_DWORD /D 1 /F
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer /V NoPreviousVersionsRestore /T REG_DWORD /D 1 /F
echo [%COMPUTERNAME%] >> \\filesrv-vm\gpowork\CloseShadowCopy.txt
exit