Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
A complex type to store the PowerShell script rule data for a Win32 LOB app.
Inherits from win32LobAppRule
Properties
| Property | Type | Description |
|---|---|---|
| ruleType | win32LobAppRuleType | The rule type indicating the purpose of the rule. Inherited from win32LobAppRule. The possible values are: detection, requirement. |
| displayName | String | The display name for the rule. Do not specify this value if the rule is used for detection. |
| enforceSignatureCheck | Boolean | A value indicating whether a signature check is enforced. |
| runAs32Bit | Boolean | A value indicating whether the script should run as 32-bit. |
| runAsAccount | runAsAccountType | The execution context of the script. Do not specify this value if the rule is used for detection. Script detection rules will run in the same context as the associated app install context. The possible values are: system, user. |
| scriptContent | String | The base64-encoded script content. |
| operationType | win32LobAppPowerShellScriptRuleOperationType | The script output comparison operation type. Use NotConfigured (the default value) if the rule is used for detection. The possible values are: notConfigured, string, dateTime, integer, float, version, boolean. |
| operator | win32LobAppRuleOperator | The script output operator. Use NotConfigured (the default value) if the rule is used for detection. The possible values are: notConfigured, equal, notEqual, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual. |
| comparisonValue | String | The script output comparison value. Do not specify a value if the rule is used for detection. |
Relationships
None
JSON Representation
Here is a JSON representation of the resource.
{
"@odata.type": "#microsoft.graph.win32LobAppPowerShellScriptRule",
"ruleType": "String",
"displayName": "String",
"enforceSignatureCheck": true,
"runAs32Bit": true,
"runAsAccount": "String",
"scriptContent": "String",
"operationType": "String",
"operator": "String",
"comparisonValue": "String"
}