OneDrive总是同步TIM QQ产生的垃圾文件。需要更改不保存在“我的文档”。TIM的设定不起作用,害我以为自己老年痴呆了,浪费了俩小时才搞定。

REM C:\Users\Public\Documents\Tencent\QQ\UserDataInfo.ini
[UserDataImportSet]
NeedImport=0
OldVersion=
OldVerDataPathType=
OldVerDataPath=
OldQQInstallPath=C:\Program Files (x86)\Tencent\TIM
[UserDataSet]
UserDataSavePathType=2
UserDataSavePath=D:\Dan\Tencent\TIM
NewVersion=

net user dan /times:M-F,07:00-13:00;M-F,18:00-22:00;Sa-Su,07:00-22:00
REM 只支持整点,不能精确到分钟
net user USERACCOUNT /times:all

REM 需呀配合计划任务定时锁定电脑,否则默认继续使用。
REM mshta vbscript:msgbox("电脑即将被锁定")(window.close)
rundll32.Exe user32.dll LockWorkStation

# SoftEther config, disable SecureNAT, create bridge "soft"
./vpnserver/vpnserver start
ifconfig tap_soft 192.168.30.1 
# echo 1 >> /proc/sys/net/ipv4/ip_forward 
iptables -t nat -A POSTROUTING -s 192.168.30.0/24 -o ens3 -j MASQUERADE 
nano /etc/sysctl.conf # net.ipv4.ip_forward = 1 
sysctl -p 
./vpnserver/vpnserver stop; ./vpnserver/vpnserver start # enable tap_soft agagin
# https://hub.docker.com/r/cenk1cenk2/softether-vpnsrv