Closed secureality closed 1 day ago
When installing ScubaGear, the required OPA executable dependency is installed by default in a .scubaGear\Tools
folder under the current user's$env:USERPROFILE
which by default usually resolves to the C:\Users\UserName
folder .
ScubaGear by default will attempt to check this directory for this OPA executable via relative path resolution. Since you're executing from a different drive ScubaGear will fail to find the executable and throw the error you're seeing.
If you need to always execute from your Z
drive you can copy the executable C:\Users\UserName\.scubaGear\Tools
or download an exe from the OPA website, then put it in the same directory where you're running Invoke-SCuBA
in the Z drive.
The run.
Invoke-SCuBA -ProductNames * -OPAPath ./
This OPAPath
parameter will point ScubaGear
to the current directory to look for the OPA executable in.
Hope this helps.
Responded with possible solution. Closing for now, user may reopen if issue has not been resolved.
Error with Rego when running any non-default drive letter (ie, C:). Looks like a calling the OPA executable, it cannot open the .rego file as it is looking in "\Program Files\WindowsPowerShell...", this is only on the current drive.
Examples: When running from drive Z: