Solved

Active Directory Login Scripts

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrate DHCP from server 2000 to 2008 1 634
Making a spare domain pc 12 327
Active Directory Replication 10 1,145
Closing cmd window after script execution 4 368
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 Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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