Solved

Active Directory Login Scripts

Posted on 2002-04-04
4
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
A look at what happened in the Verizon cloud breach.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

627 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