Add DNS alias for Domain Controller

When replacing an domain controller you might need to reuse computer name of the old domain controller. To do that you can create an DNS alias for it. If you for some reason you want to change computer name to the alias you need to run Reboot server for the name change to take effect… Continue Reading Add DNS alias for Domain Controller

AD DS: Get all userobject containing UserCertificate

if an Certificate Template has enabled Publish certificate in Active directory it will publish the certificate in an attribute on the user object. This usally is not requiered to do and it might cause some problems. To find what account that has certificate published to their user object run following oneliner.

AD DS: Get last logon for user

To get most accurat time date for a user last logonyou need to use both lastlogon and lastlogonTimestamp. lastlogon will only be triggered when an interactive logon is done. while lastlogontimestamp will be updated if lastlogon is newer than 14 days(ish) and if an logon is done by a service. You can achieve this with… Continue Reading AD DS: Get last logon for user