Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Active Directory Login Scripts

Posted on 2002-04-04
4
Medium Priority
?
233 Views
Last Modified: 2010-04-13
I'm running active directory and I wanted to create a login script just to set the time.  I have the script, but I don't know where to put it on the server so that I can set the users to use the script.  I found in help something to do with the Group Policies snap-in but I can't find that either, any Help?

Thanks
0
Comment
Question by:stain
  • 2
4 Comments
 
LVL 2

Expert Comment

by:Hyper8
ID: 6918217
At your "PDC"/PDC emulator run the following command:

net time \ServerName.Domain.com /setsntp:"sundial.columbia.edu ntp0.cornell.edu"

Thats all one line. This sets the "PDC" to timesync with one of these external time servers. The other DC's in your domain will sync with the "PDC" and the users will get synced when they sign on.

Hope this helps.

  Hyper8
0
 

Author Comment

by:stain
ID: 6918230
That is a possible way to do it but I specifically want a login script, because other things will be added on later.  I just can't find where to put it.
0
 
LVL 2

Expert Comment

by:Hyper8
ID: 6918283
Open up the Users and Computers MMC.Right click the domain and select properties. On the Group policy tab select Default Domain Policy and edit. You can add your scripts here. You have to have the appropriate rights.
0
 

Accepted Solution

by:
rodney777 earned 400 total points
ID: 6918362
Here is the Time sync section of our login script. It is great for syncing the time with the server but it was adding 5-10 seconds to the login so we REMed it out.
**************************
rem *** next line syncs the time on workstations to the serevr***
rem NET TIME /DOMAIN:MYCPA2.COM /SET /YES
**************************

This is where the Login script is located on our server:

\\SERVERNAME\SYSVOL\DOMAINNAME\scripts

Then from the server under Active Directory users and computers go into the properties of each user- click on the profile tab- in the login script feild put the name of your login script: script.bat or whatever. no need for the path just the name of the login script.

That is how out login script and time sync are set up.

Hope that helped.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
The decision to migrate to the cloud is not a simple one—many factors, such a cost, ease of use, and ongoing maintenance come into play. The goal is always for cloud platforms to make storage and backups more seamless and effective. Here’s a look at…
Integration Management Part 2
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question