Microsoft Windows Server

This page by David  Papkin contains links to information about Microsoft Windows Server.

david papkin bike

 

 

 

 

How to fix “The trust relationship between this workstation and the primary domain failed” error. See below:

RESET SECURE CHANNEL

1)

CMD

netdom reset  <machinename>  /domain:<domainname>

2)

powershell

Test-ComputerSecurechannel -repair

Reset secure channel using command line

Step-by-Step: Configure DHCP for Failover

Step-by-Step Guide to Install an Additional Domain Controller by Using IFM

Understand and Deploy DHCP Failover

The revocation function was unable to check revocation

Renaming Domain Controller

1: Open CMD prompt.

Open a command prompt. (Windows key+r (run) + cmd)
2. Adding an alternate computer name.
SYNTAX : netdom computername <currentDC FQDN> /add:<newDCName FQDN>
In the command prompt, type (sans quotes) “netdom computername wrongname.domain.local /add:server.domain.local”
Ex: netdom computername lon-dc1-clooo1.adatum.com /add:lon-dc3.adatum.com
This should return with “Added (NAME) as an alternate name for the computer. The command completed successfully.
3: Make the new name the primary.
SYNTAX: netdom computername <currentDC FQDN> /makeprimary:<newDCName FQDN>

Ex: netdom computername lon-dc1-clooo1.adatum.com /makeprimary:lon-dc3.adatum.com
IMPORTANT: This command will return successful, and warn you that you need to reboot immediately, as it may not authenticate logons (very important if only DC in forest)
4: Reboot the server.shutdown /r /t 0” in the cmd.
5: Check new server name.Go to system properties and confirm new computer name.
6: Remove old hostname.SYNTAX: netdom computername <newDCName FQDN> /remove:<oldDCName FQDN>
Ex: netdom computername lon-dc3.adatum.com  /remove:lon-dc1-clooo1.adatum.com
Command should return successfully.
Step 7: Verify functionality.in cmd, prompt run a “dcdiag” to make sure everything is OK.
Step 8: Clean up.If you use logon scripts, remember to update the UNC paths with the new server name.Change default location for domain computers.

Change default location for domain computers.

Change default location for joined computers in domain

Links to pages for specific windows server versions below.

 

Server 2012 R2 links by David Papkin

Server 2016 Links by David Papkin

Server 2019 Links by David Papkin

 

End of David Papkin page containing links to information about Microsoft Windows Server.