Set-EntraBetaDirectorySetting
Microsoft Entra IDのディレクトリ設定を更新します。
構文
Default (既定)
Set-EntraBetaDirectorySetting
-DirectorySetting <DirectorySetting>
-Id <String>
[<CommonParameters>]
説明
Set-EntraBetaDirectorySetting コマンドレットは、Microsoft Entra IDのディレクトリ設定を更新します。
例
例 1: ディレクトリ設定を更新する
Connect-Entra -Scopes 'Directory.ReadWrite.All', 'Policy.ReadWrite.Authorization'
$TemplateId = (Get-EntraBetaDirectorySettingTemplate | where { $_.DisplayName -eq 'Group.Unified' }).Id
$Template = Get-EntraBetaDirectorySettingTemplate | where -Property Id -Value $TemplateId -EQ
$Setting = $Template.CreateDirectorySetting()
$Setting["EnableMIPLabels"] = 'False'
$params = @{
Id = 'aaaaaaaa-1111-1111-1111-000000000000'
DirectorySetting = $Setting
}
Set-EntraBetaDirectorySetting @params
次の使用例は、Microsoft Entra IDのディレクトリ設定オブジェクトを更新します。
-
-DirectorySettingパラメーターは、ディレクトリ設定のプロパティを更新します。 -
-Idパラメーターは、設定オブジェクトの ID を指定します。
パラメーター
-DirectorySetting
ディレクトリ設定を指定します。
パラメーターのプロパティ
| 型: | DirectorySetting |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-Id
Microsoft Entra IDの設定オブジェクトの ID を指定します。
パラメーターのプロパティ
| 型: | System.String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。