Hello @isabel.pena,
can you provide details on the version of Windows and OCS agent ?
Is the OCS agent run manually or automatically by the service ?
If you add an exclusion of the C:\Program Files (x86)\OCS Inventory Agent\ folder in McAfee antivirus, does the problem persist ?