2020年5月

有了自动登录,心情好了很多。

Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\RSA\RSA SecurID Token\RSA SecurID Token.lnk"
WinWait 000, , 8000
Sleep 500
SendInput password{enter}
Sleep 500
Send ^c
Sleep 500
SendInput !{F4}
MsgBox, 1, , Continue to Pulse VPN? %clipboard%, 3
IfMsgBox Cancel
    return
IfWinExist, Connect
{    WinActivate
    Goto, PasswordInput
}
Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Pulse Secure\Pulse Secure.lnk"
WinWait, Pulse, , 12
Sleep 800
Click 244,136 
Sleep 800
WinWait, Connect, , 12
Sleep 800
PasswordInput:
IfWinActive, Connect
    Send ^v
Sleep 800
SendInput {enter}
Sleep 2000
Click 390,366
Sleep 800
If WinActive("Pulse Secure")
    WinClose

CAC 换IP,HE.net的IPV6也得换。

netsh interface ipv6 delete interface ip6tunnel
netsh interface ipv6 reset all

重启

netsh interface teredo set state disabled
netsh interface ipv6 add v6v4tunnel interface=IP6Tunnel x.x.x.x 216.x.x.2
netsh interface ipv6 add address IP6Tunnel 2001:x:x:x::2
netsh interface ipv6 add route ::/0 IP6Tunnel 2001:x:x:x::1

@echo off
:start
xcopy C:\swds\crm d:\swds\crm /y /v /s /f /d
choice /t 7196 /d y /m "%date% %time% Waiting 2h to start copy crm"
goto start
choice /t 5 /d y /m "%date% %time% err"
pause