deviceManagementScriptState resource type

Note: Using the Microsoft Graph APIs to configure Intune controls and policies still requires that the Intune service is correctly licensed by the customer.

Contains properties for execution state of the device management script.

Methods

Method Return Type Description
List deviceManagementScriptStates deviceManagementScriptState collection List properties and relationships of the deviceManagementScriptState objects.
Get deviceManagementScriptState deviceManagementScriptState Read properties and relationships of the deviceManagementScriptState object.
Create deviceManagementScriptState deviceManagementScriptState Create a new deviceManagementScriptState object.
Delete deviceManagementScriptState None Deletes a deviceManagementScriptState.
Update deviceManagementScriptState deviceManagementScriptState Update the properties of a deviceManagementScriptState object.
Get managedDevice managedDevice Get the managedDevice from the managedDevice navigation property.
Get user user Get the user from the user navigation property.

Properties

Property Type Description
id String Key of the device management script state entity.
runState String State of latest run of the device management script. Possible values are: unknown, success, fail.
resultMessage String Details of execution output.
lastStateUpdateDateTime DateTimeOffset Latest time the device management script executes.

Relationships

Relationship Type Description
managedDevice managedDevice The managed devices that executes the device management script.
user user The user of the managed device that executes the device management script.

JSON Representation

Here is a JSON representation of the resource.

{
  "@odata.type": "#microsoft.graph.deviceManagementScriptState",
  "id": "String (identifier)",
  "runState": "String",
  "resultMessage": "String",
  "lastStateUpdateDateTime": "String (timestamp)"
}