We recommend rebooting the P365 DirSync server, We've seen instances were network share sessions become stale and stuck, restarting should break all the sessions and allow for a new one to be generated.
Also, the following error: "Read: Error connecting to remote share (WNetAddConnection2 error code: 5)" indicates Access Denied.
This mean that the account to install the dirsync agent does not have permission to access to copy and to execute it on the DC. The service account should be added as a Built-in\Administrator on the target Domain Controller.Built-In admin group.
Verify the account required have a appropriate right given as required on this online help: https://support.quest.com/technical-documents/binary-tree-power365/current/help-center/16#TOPIC-1564814
Migrate sIDHistory permissions are required on the target domain. This is typically enabled for Domain Admins and Enterprise Admins, but can be enabled for a specific group or user by following the below steps:
Right-click on your target domain in Active Directory Users and Computers.
Select the Security tab and add or update the desired group or user and enable the “Migrate sIDHistory” permission.
Source credential must have administrator access to the source PDC emulator. This is typically enabled for Domain Admins and Enterprise Admins, but can be enabled for a specific group or user by following the below steps:
Navigator to Built-in organization unit in Active Directory Users and Computers.
Locate the administrators group and ensure the source service account is a member of the group.