https://www.systemadminguide.in/2013/11/active-directory-replication-explained.html

Note :
Above screenshot to list the all snapshots use list all command


dsa.msc console change the server name with custom ldap port

ldifde -t 10000 -d "CN=Ravi Kumar,OU=Erode,DC=DXC,DC=local" -l physicaldeliveryofficename,name -f output1.ldf
-t port
-d distinguished name
-l LDAP attribute
-f output


Import the attribute using LDIFDE command
Note :
Before replace the user physicalDeliveryOfficeName is Chennai
ldifde -i -f output.ldf

dn: CN=Ravi Kumar,OU=Erode,DC=DXC,DC=local
changetype: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: Canada
–
Note :
In this notepad end – is must otherwise you will getting an error

Get-ADUser ravi -Properties * | select physicalDeliveryOfficeName

Ldifde command Refer :
get-aduser SK101 -Properties * | select name,SamAccountName,DistinguishedName,UserPrincipalName,lastKnownParent,msDS-LastKnownRDN

I am deleting the Suresh Kumar account above path details

After deleting the account

Now I restore to different OU (Chennai)


Now the object has been restored

Now you can see the below screenshot lastKnownParent was changed.





priority
A number between 0 and 65535 that indicates the priority. A lower number gives the target a higher priority.
weight
A number between 0 and 65535 used when there are two identical priorities. The number indicates the amount of times this host is answered from the total of questions.
Example: If two host have the same priority and one host has a weight of 5 and the other of 3, it means that 5 out of 8 questions will be answered with the target that has the weight of 5.


DNS should be:
Domain
_msdcs
_sites
_tcp
_udp
nltest /sc_query:dxc.local
