soteria-security / 365Inspect

A PowerShell script that automates the security assessment of Microsoft 365 environments.
https://soteria.io/solutions/soteria-inspect/
MIT License
577 stars 109 forks source link

".\Inspector\Write-ErrorLog.ps1" was not found #27

Closed tbecirovic closed 2 years ago

tbecirovic commented 2 years ago

Hi all, first of all thanks a lot for the script which helped me a lot of quickly auditing a tenant. My onliest error that occurs on 3-4 times during the whole script is the following: The Write-ErrorLog.ps1 Script was not found in the .\Inspector folder -> and that's correct there is no Write-Error Script. The expression in the script who invoke these lines is: $finding.AffectedObjects = Invoke-Expression ".\inspectors\$selected_inspector.ps1" It not seems to be correct :)

ThoughtContagion commented 2 years ago

Thank you, I'll fix this.

ThoughtContagion commented 2 years ago

Pull Request to resolve created - https://github.com/soteria-security/365Inspect/pull/30