Book now with code EOY2025
mrmcmint wrote: » Anyway... I guess the only way to do this (and it will involve a script) is to start by registering c:\program files\Windows Resource Kits\Tools\acctinfo.dll (assuming you have RKTools installed). Once you have done this you should see an additional tab in AD under the user account properties called Additional Account Info. This contains the logon count of the user in question. Unfortunately, you can't do a search in AD and double click the users name to get this tab, you need to manually go through the hierarchy in AD and double click their username.
HeroPsycho wrote: » You don't need that DLL registered. It just exposes the number of times an account logged in within ADUC. That count is stored in Active Directory regardless. To see the number of logins for a user using the quest ad cmdlets on a domain controller: connect-qadservice -service dc.domain.com get-qaduser "username" -includedproperties logoncount | select logoncount That might help you get started. Set variables for the logoncount for each DC, a variable of the sum of those values, and a conditional if that says when over a certain number, lock the account.
HeroPsycho wrote: »
Use code EOY2025 to receive $250 off your 2025 certification boot camp!