2nd Line Support Knowledge Base

Guidance only. These steps are provided free to help IT staff troubleshoot. Some commands change live systems (unlocking or resetting accounts, removing routes, rejoining the domain). Read each step first, test where you can, follow your change process, and use at your own risk. Need a hand? Raise a support request.

Your environment · Open to see what each example means and how to find your real value.

The commands are written for a made-up company. There are two kinds of example value:

  • Blue underline: values that are the same for your whole network (domain, domain controllers, gateway). Set them once below and every command is rewritten.
  • Amber: values that change with each ticket (the affected IP, server, interface or group). Replace these by hand before you run the command.
  • Never change the fixed DNS labels Windows creates for itself: _msdcs, _ldap._tcp, _kerberos._tcp, dc., pdc., in-addr.arpa. Only the domain part after them changes, and the page does that for you. Example: _ldap._tcp.dc._msdcs.corp.example.com becomes _ldap._tcp.dc._msdcs.yourdomain.local.

Your internal Active Directory domain, which may differ from your website. On a domain PC, cmd: echo %USERDNSDOMAIN% or PowerShell: (Get-ADDomain).DNSRoot. Also under Settings › System › About › Domain. Linux: realm list.

The short name before the backslash when you log on as CORP\jsmith. cmd: echo %USERDOMAIN% or (Get-ADDomain).NetBIOSName.

The part after @ in staff email addresses, used for Microsoft 365 sign-ins and split-brain DNS. Microsoft 365 admin centre › Settings › Domains.

Short name only, no domain. (Get-ADDomain).PDCEmulator or netdom query fsmo. The PDC is the DC that holds lockouts and the master time.

Get-ADDomainController -Filter * | Select-Object Name,IPv4Address or nslookup DC01.

Any other DC, from the same command as above or nltest /dclist:%USERDNSDOMAIN%. Leave blank if you only have one.

Same command as the first DC IP.

The router or firewall LAN IP. ipconfig › "Default Gateway" on a PC in that network. Mac: route -n get default. Linux: ip route show default.

ipconfig /all › "DHCP Server" gives its IP. For the name: Get-DhcpServerInDC. If your router hands out addresses, the DHCP commands don't apply; use the router's admin page.

The logon name (sAMAccountName), not the display name. Get-ADUser -Filter "Name -like '*Smith*'" | Select-Object Name,SamAccountName. Change it for each ticket.

Run hostname on the PC, or check the asset label. Change it for each ticket.

Run hostname -s on the Linux machine. Keep it to 15 characters or fewer for AD joins.

Blank fields keep the example value. Saved in this browser only, and never sent anywhere.
Command reference ·