NetDfsMove

[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern uint NetDfsMove(
   string DfsEntryPath,
   string NewDfsEntryPath,
   uint Flags
);

Microsoft documentation: Link

Last updated