deviceComplianceScript resource type
Namespace: microsoft.graph
Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Intune will provide customer the ability to run their Powershell Compliance scripts (detection) on the enrolled windows 10 Azure Active Directory joined devices.
Methods
Method | Return Type | Description |
---|---|---|
List deviceComplianceScripts | deviceComplianceScript collection | List properties and relationships of the deviceComplianceScript objects. |
Get deviceComplianceScript | deviceComplianceScript | Read properties and relationships of the deviceComplianceScript object. |
Create deviceComplianceScript | deviceComplianceScript | Create a new deviceComplianceScript object. |
Delete deviceComplianceScript | None | Deletes a deviceComplianceScript. |
Update deviceComplianceScript | deviceComplianceScript | Update the properties of a deviceComplianceScript object. |
assign action | None |
Properties
Property | Type | Description |
---|---|---|
id | String | Unique Identifier for the device compliance script |
publisher | String | Name of the device compliance script publisher |
version | String | Version of the device compliance script |
displayName | String | Name of the device compliance script |
description | String | Description of the device compliance script |
detectionScriptContent | Binary | The entire content of the detection powershell script |
createdDateTime | DateTimeOffset | The timestamp of when the device compliance script was created. This property is read-only. |
lastModifiedDateTime | DateTimeOffset | The timestamp of when the device compliance script was modified. This property is read-only. |
runAsAccount | runAsAccountType | Indicates the type of execution context. Possible values are: system , user . |
enforceSignatureCheck | Boolean | Indicate whether the script signature needs be checked |
runAs32Bit | Boolean | Indicate whether PowerShell script(s) should run as 32-bit |
roleScopeTagIds | String collection | List of Scope Tag IDs for the device compliance script |
Relationships
Relationship | Type | Description |
---|---|---|
assignments | deviceHealthScriptAssignment collection | The list of group assignments for the device compliance script |
runSummary | deviceComplianceScriptRunSummary | High level run summary for device compliance script. |
deviceRunStates | deviceComplianceScriptDeviceState collection | List of run states for the device compliance script across all devices |
JSON Representation
Here is a JSON representation of the resource.
{
"@odata.type": "#microsoft.graph.deviceComplianceScript",
"id": "String (identifier)",
"publisher": "String",
"version": "String",
"displayName": "String",
"description": "String",
"detectionScriptContent": "binary",
"createdDateTime": "String (timestamp)",
"lastModifiedDateTime": "String (timestamp)",
"runAsAccount": "String",
"enforceSignatureCheck": true,
"runAs32Bit": true,
"roleScopeTagIds": [
"String"
]
}