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.

The trust relationship between this workstation and the primary domain failed

Some times for some reason this issue occure. It can be a pain because when google on it you be adivsed to follow steps that will remove the computer from domain and then rejoin. You do not always want to do that. It is much easier to just reset the password for the computer object.… Continue Reading The trust relationship between this workstation and the primary domain failed