1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
@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 自动备份
1
2
|
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
|
本文转自 nonono11 51CTO博客,原文链接:http://blog.51cto.com/abian/1295146,如需转载请自行联系原作者