Solved

Active Directory Login Scripts

Posted on 2002-04-04
4
225 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 100 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now