qwinsta /server:yourservername
*********************************************
>repadmin /removelingeringobjects
>repadmin /removelingeringobjects <DestDCName> <SourceDCGUID> <LDAPPartition>
/advisory_mode
********************************************
_________________________________________________
Script in case nothing is working :
$ipaddress = "10.10.252.1"
$port = 137
$connection = New-Object System.Net.Sockets.TcpClient($ipaddress, $port)
if ($connection.Connected) {
Write-Host "Success"
}
else {
Write-Host "Failed"
}
__________________________________________________
Also can use telnet
In cmd:
**************************************************
OR USE
*************************************************
Command to retrieve DCDIAG report for same DC
************************************************
DNS Troubleshoot
Nltest /dsgetdc: is used to exercise the dc locator process. Thus /dsgetdc:< domain
name > tries to find the domain controller for the domain. Using the force flag
forces domain controller location rather than using the cache. You can also specify
options such as /gc or /pdc to locate a Global Catalog or a primary domain
controller emulator. For finding the Global Catalog, you must specify a "tree
name," which is the DNS domain name of the root domain.