Active Directory

Preseed Files for DFS Replication using Robocopy

Use Robocopy to Preseed Files for DFS Replication I’ll write this here first, since it’s important: The folder in which you are robo-copying (ex c:\test) must not exist on the destination server (ex. f:\test). If you create the folder manually on the destination server, the file-hashes will not match and DFSr will …

Active Directory

Reset Users Password Expiration Date

1.In Active directory users and computers, make sure advanced features is enabled 2.Navigate to the user account, there should be an Attribute Editor tab 3.Scroll to the pwdLastSet field. Modify it by entering 0 (zero) in the value field. Click OK. This sets the value to (Never) as in the …

Active Directory

Reset AD Users Password Expiration Date

1.In Active directory users and computers, make sure advanced features is enabled 2.Navigate to the user account, there should be an Attribute Editor tab 3.Scroll to the pwdLastSet field. Modify it by entering 0 (zero) in the value field. Click OK. This sets the value to (Never) as in the …

Active Directory

How to remove a KMS Server from your infrastructure

We had some rogue KMS server hosts in our infrastructure. My guess is someone inadvertently installed the wrong key. We can easily look up KMS hosts as they are published to DNS. from a command prompt run:

Run this for all your subdomain’s fqdn to list all servers. A …

Active Directory

Fix “The trust relationship between this workstation and the primary domain failed”

Solution 1 from cmdline enter

  Source Solution 2 If machines has powershell v3 or above: