I get this error. As soon as I remove this from UnsafePaths the error disappear.
@{
label = "Autodesk";
Paths = "C:\Autodesk";
pubruleGranularity = "pubOnly";
}
Scanning Autodesk:
C:\Autodesk
Get-AppLockerFileInformation : The volume for a file has been externally altered so that the opened file is no longer valid. (Exception from HRESULT: 0x800703EE)
At D:\Temp\AaronLocker-main\AaronLocker\Support\BuildRulesForFilesInWritableDirectories.ps1:235 char:42
- ... AddRange( @(Get-AppLockerFileInformation -FileType Exe,Dll,Script -Di ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Get-AppLockerFileInformation], FileLoadException
- FullyQualifiedErrorId : TestAppLockerPolicyCmdlet-FailedProcessingFile,Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.GetAppLockerFileInformationCmdlet