Using the standard GUI Microsoft Management Consoles to make the change to speed up Active Directory replication is not possible. The best result of using administrator consoles will be to increase domain replication between domain controllers to 15 minutes. These large time values were instituted into Active Directory at version 1 because inter-site connections during that era of computing and networking were much lower in bandwidth with the most common being frame-relay or…
Tag: time
Lists all users last logon time
As administrators we often want to check which users have not logged in for quite a while, or what accounts recently accessed a system, etc. The following script list all users and their last logon time. With the lastloggeduser.csv we can get fancy with excel to find differences based on age and more.
1 |
$([ADSI]"WinNT://$env:COMPUTERNAME").Children | where {$_.SchemaClassName -eq 'user'} | select @{l='name';e={$_.name}},@{l='LastLogin';e={$_.lastlogin}} | export-csv C:\scripts\lastloggedusers.csv |
How to Configure Time Server (NTP Server) on Centos 7?
Prerequisites: VM/ Physical – It is recommended to have the time server as a physical server, but VMs should be okay depending on your setup and requirement. My virtual lab environment is VMware based so here’s the guide for a VM. Once the CentOS Minimal is installed on the VM make sure to install open-vm-tools….
Updating the system time on Server 2008R2 & 2012R2 using NTP Servers
To update, use the command below (2008 and 2012 server compatible)
1 |
w32tm /config /manualpeerlist:"ntp_server" /syncfromflags:manual /reliable:yes /update |
change the ntp_server with your source. Check http://tf.nist.gov/tf-cgi/servers.cgi for servers Restart the time service
1 2 |
net stop w32time net start w32time |
Resync the time
1 |
w32tm /resync |
Verify your sync status
1 |
w32tm /query /status |
Commands above should be fine if your sources are working correctly and/or your connection is OK (firewall or Microsoft Forefront…