Last Logon on Domain controllers

My PL  given me the requirement to find the last logon for each user on the domain. There is a simple utility in windows resource kit that does this work. usrstat.exe :– This command-line tool displays the username, full name, and last logon date and time for each user in a given domain. you can download…

Exporting Password Last Set & password expire property

We got a requirement that a list of users is needed with password last set & those who has a property of password never expires we have run the below command : csvde -f  c:\aduser.csv -r  objectclass=user -l “Cn,objectclass,pwdlastset,useraccountcontrol” we imported the csv in excel , then the issue is converting the number into date…

Configuring PDC Windows Time to sync to External source

For configuring PDC to sync the clock with external reliable Time source Folowing registry keys needs to be edited: 1.  HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type Change  NT5DS to NTP 2. HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags Change 10 to 5 3. HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer add the reliable time sources ,for example:  time.windows.com,0x1 tock.usno.navy.mil,0x1 4. Stop time service & start again net stop w32time net start w32time…

FSMO thru Command line

For those geeks that want to know everything from command line, DSQUERY is of great help. For example: Finding the PDC in the domain:- dsquery server -hasfsmo pdc Finding the RID in the domain:- dsquery server -hasfsmo pdc Finding the Infrastructure master in the domain:- dsquery server -hasfsmo infr For schema & domain naming roles keywords are schema…