We have a short script to detect a file related to a Webmproject Libwebp vulnerability to delete the folder it is not needed by any software we use. The detection script:
Specify the folder path
$folderPath = “C:WindowsInstallerRazer”
Check if the folder exists
if (Test-Path $folderPath) {
Write-Output “Detected: $folderPath exists”
exit 1
}
else {
Write-Output “Not detected: $folderPath does not exist”
exit 0
}
Machines that are confirmed to have the path C:WindowsInstallerRazer are showing as “no issues” even though the remediation script should be running, exit 1 for the presence of the folder. Any ideas why this script isn’t moving to remediation?
nimwegan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.