@echo off
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://192.168.10.1:8086/proxy.pac" /f
if %username% == newuser (
    exit
) else (
        net use z: \\192.168.10.22\iedownload\%username%
        ping 127.0.0.1 -n 2 -w 1000 > nul
        if not exist Z:\ (
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "%USERPROFILE%\桌面" /f
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d "%USERPROFILE%\My Documents" /f
        ) else (
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "Z:\桌面" /f
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d "Z:\我的文档" /f
        )
)
exit



Snapshot 自动备份

snapshot D: \\192.168.100.24\share\D\131015_Full_Bak.sna --exclude:"\Share\multimedia source" -L2048
snapshot D: \\192.168.100.24\share\D\$DISK-$DATE.sna -h\\192.168.100.24\share\D\131015_Full_Bak.hsh