@echo off
:loop
ping -n 1 ya.ru || (
netsh interface set interface "Ethernet" admin=DISABLED
netsh interface set interface "Ethernet" admin=ENABLED
netsh interface ipv4 set address "Ethernet" static 10.0.0.1 255.255.255.0 10.0.0.2
exit
)
timeout 1
goto loop
C:\>dism /mount-wim /wimfile:C:\RemoteInstall\Boot\x64\Images\capture_x64.wim /mountdir:C:\MountDir /index:1
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
C:\>dism /unmount-wim /mountdir:C:\MountDir /commit
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Image File : C:\RemoteInstall\Boot\x64\Images\capture_x64.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.