Use the Login Script installation for computers not yet discovered in your environment but that you want to manage when they join a domain. Before implementing any login script, run it on a test server to ensure it works for your environment. Also, ensure you have administrative rights on the target computer.
Creating a Login Scipt
Use the following sample as a reference for creating your own script. When configuring it, you must:
Running the Login Script
Run the script on the Domain Controller as part of the Windows Account profile. When someone logs in, the Windows client asks the Domain Controller for a profile that you can configure to contain the login script.
Command line arguments for AeXSWDInstSvc
[-u URL]For details of these options see KB 38380