If an interpreter is not specified, the
source is executed directly. This execution, without an
interpreter, only succeeds for executables and scripts that have <a
href="https://en.wikipedia.org/wiki/Shebang_(Unix)";
class="external">shebang lines</a>.
Powershell
Indicates that the script runs with PowerShell.
Shell
Indicates that the script runs with /bin/sh on Linux and
cmd.exe on Windows.
Unspecified
Invalid value, the request will return validation error.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the `Interpreter` is 2.4.0, and there are multiple older versions available, ranging down to version 1.3.0."],["The `Interpreter` enum specifies which scripting language or direct execution method to use for a given script, which can be found in the namespace `Google.Cloud.OsConfig.V1`."],["Four different `Interpreter` options are available: `None` for direct execution with shebang lines, `Powershell`, `Shell` (using `/bin/sh` on Linux or `cmd.exe` on Windows), and `Unspecified`, which will result in a validation error."],["The interpreter is used in `Google.Cloud.OsConfig.V1.OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter`."],["If no interpreter is selected the system will attempt to execute directly if it finds a shebang line."]]],[]]