Unexpected End of File Error in File Server Monitoring Plan
Symptom
The Netwrix Auditor Health Log contains EventIDs 2002 and 2004:
Unexpected end of file has occurred.
The following elements are not closed refering to Netwrix .xml files in
the ProgramData directory of the Netwrix server specific to the monitoring plan.
Cause
This error is related to the link-layer protocol. It indicates that no service account has been granted permission to access the Microsoft Link-Layer Discovery Protocol (MSLLD) driver.
Resolution
To address this issue, follow these steps:
-
Run elevated Command Prompt to execute the following command:
SC sdshow MSLLDPCopyThe output should read similar to the following:
D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BG)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)
(A;;CCDCLCSWRPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SO)
(A;;LCRPWP;;;S-1-5-80-3141615172-2057878085-1754447212-2405740020-3916490453)
S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) -
Execute the following command:
SC sdshow MUPCopyThe output should read similar to the following:
D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)
(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)
(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD) -
Locate the entry for
NT AUTHORITY\ SERVICErepresented as(A;;CCLCSWLOCRRC;;;SU). Add it to the original MSLLDP security descriptor property, just before the lastS:(AU…group. -
Apply the new security descriptor to the MSLLDP service using the following command. Delete the carriage return symbols when copying the command.
sc sdset mslldp D:
(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BG)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)
(A;;CCDCLCSWRPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SO)
(A;;LCRPWP;;;S-1-5-80-3141615172-2057878085-1754447212-2405740020-3916490453)(A;;CCLCSWLOCRRC;;;SU)
S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)