The copy of headquarters and branch is better than that of big data
Head office branch
Network environment:
The total branch company (Shenzhen / Huizhou) is connected through × × network, which is the same internal network, and the network segment of the head office is 192.168.X.X.
The branch network is 10.1.X.X.
Business requirements: the head office needs to push WeCom to various clients, some of which are installed and some are not installed. The transmission speed through × × × private network is probably less than 1m, if the copy instruction is sent through the domain. Will affect the company's overall bandwidth solution: Shenzhen / Huizhou (head office) each put a file server, Shenzhen can directly use the domain server, and put all the files in the WeCom installation directory into the Shenzhen / Huizhou server, such as\ lee.net\ server. ;\ 10.1.9.9\ wxwork add GPO to the domain and set the user login script directive as follows: @ echo off
Rem WeCom installation (because WeCom uses it directly, so directly judge whether the file exists or not, do not copy and generate a shortcut to the current user's desktop)
Rem judges whether the client computer is in Shenzhen or Huizhou (10.1. Segment IP), and then copy data from the local server to reduce the consumption of AD server network resources
Ipconfig | findstr "192.168."
If errorlevel 1 goto hz
If errorlevel 0 goto sz
Exit
Exit
: sz
If not exist "C:\ Program Files (x86)\ WXWork\ WXWork.exe" (
Xcopy "\ lee.net\ SysVol\ absen.com\ Policies {E4DA57A7-E4CC-4F61-9AA1-3F43B4F2D113}\ User\ Scripts\ Logon\ WXWork"C:\ WXWork\" / E / C / Q / Y
Copy "C:\ WXWork\ WeCom .lnk"% USERPROFILE%/desktop"
) else (
Exit
)
: hz
If not exist "C:\ Program Files (x86)\ WXWork\ WXWork.exe" (
Xcopy "\ 10.1.9.9\ wxwok"C:\ WXWork\" / E / C / Q / Y
Copy "C:\ WXWork\ WeCom .lnk"% USERPROFILE%/desktop"
) else (
Exit
)