Solved

Active Directory Login Scripts

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

10 Experts available now in Live!

Get 1:1 Help Now