Fixed that Win10 could not execute login vbs script
Due to the release of the new version of Windows system, most of the project implementation has been changed from the original Windows2008 R2 or Win7 to Windows2012, Windows2016, Win10 and other operating systems. As a result, the domain policy login script (vbs) executes normally when the user is using Win7 or Windows2008R2, but the domain policy script (VBS) does not execute properly when the user logs in to systems above Win7 and Windows2008R2.
The following solutions are now available for Windows8.1\ Win10\ Windows2012R2\ Windows2016
Modify the registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Policies\ System]
"EnableLinkedConnections" = dword:00000001
Configure using gpedit.msc
Path: computer configuration-Administrative templates-system-Group Policy
Configure login script delay = = disable
Use domain policy push
Create a new registry key in the computer configuration-preferences-Windows Settings-Registry
Path SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Policies\ System
DWORD value = EnableLinkedConnections
Group Policy location
Path: computer configuration-Administrative templates-system-Group Policy
Configure login script delay = = disable
Configure user group policy loopback processing mode = merge
Note:
1. If your domain is a 2008R2 domain, please use win2012's server to install the gpmc.msc tool and open the edit group policy, otherwise the path will not be found: configure login script delay = = disable
2. After modifying the registry and group policy, the machine needs to be restarted before it takes effect.