Acronis Snap Deploy 5 - User Guide User Manual
Page 145

145
Copyright © Acronis International GmbH, 2002-2014
Sample script
setlocal
SET IMG_PATH=\\image_server\images
SET TMP_DRV_LETTER=h:
net use %TMP_DRV_LETTER% %IMG_PATH%
echo off
for /f "tokens=1-13 delims= " %%a in ('ipconfig /all') do (
IF %%a EQU Physical (
for /f "tokens=1-3 delims= " %%a in ('echo %%l') do (
echo IMAGE FILE: %%a.tib
asdcmd.exe /create /filename:%TMP_DRV_LETTER%\%%a.tib /harddisk:1 /compression:8
goto end
)
)
)
:end
echo on
net use %TMP_DRV_LETTER% /d
wpeutil Reboot
endlocal
What this script does:
a) Mounts the network folder
b) Retrieves the booted machine’s MAC address
c) Generates a .tib file name (if MAC address is 01-02-03-04-05-06 then the .tib file name will be
01-02-03-04-05-06.tib)
d) Creates an image of the volume C of the machine, and saves the image to the network folder
using the generated file name
e) Restarts or shuts down the machine
Environment variables:
IMG_PATH: the path to a network folder on the deployment server.
TMP_DRV_LETTER: the mounted drive on target side.
- Recovery Expert (20 pages)
- Backup Advanced - Quick Start Guide (13 pages)
- Backup Advanced - Installation Guide (64 pages)
- Backup Advanced - User Guide (442 pages)
- Backup for Windows Server - Installation Guide (15 pages)
- Backup for Windows Server - Installation Guide (19 pages)
- Backup for Windows Server - User Guide (269 pages)
- Backup for Linux Server - Installation Guide (14 pages)
- Backup for Linux Server - User Guide (210 pages)
- Backup for PC - User Guide (243 pages)
- SharePoint Explorer - User Guide (18 pages)
- Backup Advanced (Cloud) - User Guide (33 pages)
- Backup Advanced (Cloud) - User Guide (37 pages)
- Backup Advanced for vCloud - Quick Start Guide (25 pages)
- Backup Advanced for vCloud - Administrator's Guide (61 pages)
- Backup Advanced for vCloud - User Guide (21 pages)
- Backup for VMware 9 - User Guide (127 pages)
- Backup for VMware 9 - User Guide (123 pages)
- True Image 2015 - User Guide (146 pages)
- True Image for Mac - User Guide (19 pages)
- True Image for Mac - User Guide (16 pages)
- Universal Restore - User Guide (5 pages)
- True Image Lite 2013 by Acronis - User Guide (50 pages)
- Server Cloud Backup - User Guide (142 pages)
- Cloud - User Guide (31 pages)
- Cloud Mobile App - User Guide (15 pages)
- Disk Director 11 Advanced Server - User Guide (95 pages)
- Disk Director 11 Advanced Server - User Guide (94 pages)
- Disk Director 11 Advanced Server - Quick Start Guide (9 pages)
- Disk Director 11 Advanced Server - Quick Start Guide (11 pages)
- Disk Director 11 Advanced Workstation - Quick Start Guide (9 pages)
- Disk Director 11 Advanced Workstation - Quick Start Guide (11 pages)
- Disk Director 11 Advanced Workstation - User Guide (92 pages)
- Disk Director 11 Advanced Workstation - User Guide (93 pages)
- Disk Director 12 - User Guide (80 pages)
- Drive Monitor - User Guide (25 pages)
- Migrate Easy 7.0 - User Guide (40 pages)
- Drive Cleanser 6.0 - User Guide (31 pages)
- Access Advanced - User Guide (97 pages)
- Access Advanced - Administrator's Guide (259 pages)
- Access Advanced - Installation Guide (180 pages)
- Access - User Guide (91 pages)
- Access - Administrator's Guide (177 pages)
- Snap Deploy 4 - User Guide (145 pages)