So I created a new package and confirm that the Package Server downloads it and displays it as available However, Notification Server initially displays it as pending until it receives data from the Package Server, and then the Notification Server displays it as invalid.
The agent.log file contains the following errors:
<event date='May 16 11:51:05' severity='2' hostName='pc100' source='CreateDirectoryPath' module='AeXNSAgent.exe' process='AeXNSAgent.exe' pid='724' thread='1740' tickCount='495844828' >
<![CDATA[Cannot create directory: 0x80070005 [Access is denied] d:]]></event>
<event date='May 16 11:51:05' severity='2' hostName='pc100' source='EventTransport' module='AeXNSAgent.exe' process='AeXNSAgent.exe' pid='724' thread='1740' tickCount='495844843' >
<![CDATA[Error while copying event to capture directory: Access is denied (-2147024891)]]></event>
Every package is associated with the following error when the Send Package Status is run and is recorded in the 'Package Status' NSE file as well as the SWDPackageServer Table:
The trust relationship between this workstation and the primary domain failed(1789).
When I look at NTFS permissions, I notice that the .\Package Delivery\<Guid> directories on the Package Servers that the Notification Server is displaying as having invalid packages, that there is only the Administrator and SYSTEM accounts present.