deviceHealthScript リソースの種類

名前空間: microsoft.graph

大事な: /beta バージョンの Microsoft Graph API は変更される可能性があります。運用環境での使用はサポートされていません。

注:Intune 用 Microsoft Graph API には、テナントの有効な Intune ライセンスが必要です。

Intuneは、登録されている Windows 10 Azure Active Directory 参加済みデバイスで Powershell Health スクリプト (修復と検出) を実行する機能を顧客に提供します。

メソッド

メソッド 戻り値の型 説明
deviceHealthScripts を一覧表示する deviceHealthScript コレクション deviceHealthScript オブジェクトのプロパティとリレーションシップを一覧表示します。
deviceHealthScript を取得する deviceHealthScript deviceHealthScript オブジェクトのプロパティとリレーションシップを読み取ります。
deviceHealthScript を作成する deviceHealthScript 新しい deviceHealthScript オブジェクトを作成します。
deviceHealthScript を削除する なし deviceHealthScript を削除します。
deviceHealthScript を更新する deviceHealthScript deviceHealthScript オブジェクトのプロパティを更新します。
assign アクション なし
updateGlobalScript アクション String 独自のデバイス正常性スクリプトを更新する
getGlobalScriptHighestAvailableVersion アクション String 独自のデバイス正常性スクリプトを更新する
enableGlobalScripts アクション なし
areGlobalScriptsAvailable 関数 globalDeviceHealthScriptState
getRemediationSummary 関数 deviceHealthScriptRemediationSummary
getRemediationHistory 関数 deviceHealthScriptRemediationHistory デバイス正常性スクリプトによって修復の数を取得する関数

プロパティ

プロパティ 説明
id String デバイス正常性スクリプトの一意識別子
publisher String デバイス正常性スクリプト発行元の名前
version String デバイス正常性スクリプトのバージョン
displayName String デバイス正常性スクリプトの名前
説明 String デバイス正常性スクリプトの説明
detectionScriptContent バイナリ 検出 powershell スクリプトのコンテンツ全体
remediationScriptContent バイナリ 修復 powershell スクリプトのコンテンツ全体
createdDateTime DateTimeOffset デバイス正常性スクリプトが作成されたときのタイムスタンプ。 このプロパティは読み取り専用です。
lastModifiedDateTime DateTimeOffset デバイス正常性スクリプトが変更されたときのタイムスタンプ。 このプロパティは読み取り専用です。
runAsAccount runAsAccountType 実行コンテキストの種類を示します。 可能な値は、systemuser です。
enforceSignatureCheck ブール型 スクリプト署名をチェックする必要があるかどうかを示す
runAs32Bit ブール型 PowerShell スクリプトを 32 ビットとして実行するかどうかを示す
roleScopeTagIds String collection デバイス正常性スクリプトのスコープ タグ ID の一覧
isGlobalScript ブール型 これが Microsoft 専用スクリプトであるかどうかを判断します。 専用スクリプトは読み取り専用です
highestAvailableVersion String Microsoft 専用スクリプトで使用可能な最高バージョン
deviceHealthScriptType deviceHealthScriptType スクリプト ポリシーの DeviceHealthScriptType。 可能な値は、deviceHealthScriptmanagedInstallerScript です。
detectionScriptParameters deviceHealthScriptParameter コレクション ComplexType DetectionScriptParameters オブジェクトの一覧。
remediationScriptParameters deviceHealthScriptParameter コレクション ComplexType RemediationScriptParameters オブジェクトの一覧。

リレーションシップ

リレーションシップ 説明
assignments deviceHealthScriptAssignment コレクション デバイス正常性スクリプトのグループ割り当ての一覧
runSummary deviceHealthScriptRunSummary デバイス正常性スクリプトの高レベルの実行の概要。
deviceRunStates deviceHealthScriptDeviceState コレクション すべてのデバイスにわたるデバイス正常性スクリプトの実行状態の一覧

JSON 表記

以下は、リソースの JSON 表記です。

{
  "@odata.type": "#microsoft.graph.deviceHealthScript",
  "id": "String (identifier)",
  "publisher": "String",
  "version": "String",
  "displayName": "String",
  "description": "String",
  "detectionScriptContent": "binary",
  "remediationScriptContent": "binary",
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "runAsAccount": "String",
  "enforceSignatureCheck": true,
  "runAs32Bit": true,
  "roleScopeTagIds": [
    "String"
  ],
  "isGlobalScript": true,
  "highestAvailableVersion": "String",
  "deviceHealthScriptType": "String",
  "detectionScriptParameters": [
    {
      "@odata.type": "microsoft.graph.deviceHealthScriptStringParameter",
      "name": "String",
      "description": "String",
      "isRequired": true,
      "applyDefaultValueWhenNotAssigned": true,
      "defaultValue": "String"
    }
  ],
  "remediationScriptParameters": [
    {
      "@odata.type": "microsoft.graph.deviceHealthScriptStringParameter",
      "name": "String",
      "description": "String",
      "isRequired": true,
      "applyDefaultValueWhenNotAssigned": true,
      "defaultValue": "String"
    }
  ]
}