close
more revertvm.bat
@echo off
setlocal enableextensions enabledelayedexpansion
set p2=%~2
if [%~2]==[] ( set p2=%~1 )
rem for /f "tokens=* delims=" %%a in (txt) do
for /L %%d in (%~1, 1, !p2!) do (
set c=000%%d
set c=!c:~-4!
set a=w7a3!c!
rem ping -n 1 !a!
echo ============= !a! ===================== revert vm
powershell -command "Get-VMSnapshot !a! | Restore-VMSnapshot -Confirm:$false"
)
date /t
time /t
rem /quite
全站熱搜
留言列表