名前空間: microsoft.graph
大事な:Microsoft では/beta API Intuneサポートされていますが、変更の頻度が高くなります。 可能であれば、バージョン v1.0 を使用することをお勧めします。 バージョン セレクターを使用して、バージョン v1.0 で 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 アクション | 文字列 | 独自のデバイス正常性スクリプトを更新する |
| getGlobalScriptHighestAvailableVersion アクション | 文字列 | 独自のデバイス正常性スクリプトを更新する |
| enableGlobalScripts アクション | なし | |
| areGlobalScriptsAvailable 関数 | globalDeviceHealthScriptState | |
| getRemediationSummary 関数 | deviceHealthScriptRemediationSummary | |
| getRemediationHistory 関数 | deviceHealthScriptRemediationHistory | デバイス正常性スクリプトによって修復の数を取得する関数 |
プロパティ
| プロパティ | 型 | 説明 |
|---|---|---|
| id | 文字列 | デバイス正常性スクリプトの一意識別子 |
| publisher | 文字列 | デバイス正常性スクリプト発行元の名前 |
| version | 文字列 | デバイス正常性スクリプトのバージョン |
| displayName | 文字列 | デバイス正常性スクリプトの名前 |
| 説明 | String | デバイス正常性スクリプトの説明 |
| detectionScriptContent | Binary | 検出 powershell スクリプトのコンテンツ全体 |
| remediationScriptContent | Binary | 修復 powershell スクリプトのコンテンツ全体 |
| createdDateTime | DateTimeOffset | デバイス正常性スクリプトが作成されたときのタイムスタンプ。 このプロパティは読み取り専用です。 |
| lastModifiedDateTime | DateTimeOffset | デバイス正常性スクリプトが変更されたときのタイムスタンプ。 このプロパティは読み取り専用です。 |
| runAsAccount | runAsAccountType | 実行コンテキストの種類を示します。 使用可能な値は、 system、 userです。 |
| enforceSignatureCheck | ブール型 | スクリプト署名をチェックする必要があるかどうかを示す |
| runAs32Bit | ブール型 | PowerShell スクリプトを 32 ビットとして実行するかどうかを示す |
| roleScopeTagIds | String collection | デバイス正常性スクリプトのスコープ タグ ID の一覧 |
| isGlobalScript | ブール型 | これが Microsoft 専用スクリプトであるかどうかを判断します。 専用スクリプトは読み取り専用です |
| highestAvailableVersion | 文字列 | Microsoft 専用スクリプトで使用可能な最高バージョン |
| deviceHealthScriptType | deviceHealthScriptType | スクリプト ポリシーの DeviceHealthScriptType。 使用可能な値は、 deviceHealthScript、 managedInstallerScriptです。 |
| 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"
}
]
}