Sometimes there may be a need to refresh the Patch Assessment scan files if the PMImport fails due to a file being held open i.e. WindowsPatchData.zip, or any other file in the windowsvulnerabilityscan folder.
Common Errors (the file may be different):
Failed to update Tools\WindowsPatchData.zip
The process cannot access the file 'D:\Program Files\Altiris\Patch Management\packages\windowsvulnerabilityscan\WindowsPatchData.zip' because it is being used by another process.
Failed to update assessment files for: 'Import Patch Data for Windows' (c27dbb50-6ddf-4125-87c1-d8f5b588491d)
The process cannot access the file 'D:\Program Files\Altiris\Patch Management\packages\windowsvulnerabilityscan\WindowsPatchData.zip' because it is being used by another process.
Patch Management Solution 8.x
To fully refresh the Windows System Assessment Scan files in Patch Management 8.x, work through the following steps:
9. Verify that the PMImport finishes successfully
If the issue keeps reoccurring where this WindowsPatchData.zip file keeps getting locked, try to identify what is locking it. Some ideas on how to do this:
1. Download Microsoft Process Explorer: https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer
2. Check if the WindowsPatchData.zip file is still locked.
Steps for finding:
3. If nothing is locking the file, try to run PMImport again and when you see the error in the NS logs for this error:
The process cannot access the file 'D:\Program Files\Altiris\Patch Management\packages\windowsvulnerabilityscan\WindowsPatchData.zip' because it is being used by another process.
Then open Microsoft Process Explorer and see if it shows what it is.
https://www.windowscentral.com/how-delete-locked-files-windows-10