A Group Policy Object can be created to assign the logon script to users domain wide, providing an easy way to assign the script to all users in Active Directory.
It can be done following these steps:
1) Open GPMC.msc in Domain Controller.
2) Right-click in the domain name (or specific Organizational Unit where logon script needs to be assigned) and select "Create a GPO in this domain, and Link it here...", it can be named "LogonScript" for example.
3) Locate that policy under "Group Policy Objects" and right-click on it and select "Edit".
4) Browse to "User configuration" > "Policies" > "Windows Settings" > "Scripts" > "Logon".
5) Click "Properties".
6) On new window click "Add".
7) Enter slogic in "Script Name" and click "OK".
8) Click "OK" to apply the GPO.
9) Close the Group Policy Management editor.
Next time the Group Policies are updated the script will be assigned to user and in next logon the script will run.