如何在 Azure Active Directory 中使用 Update-AzADDomainService

Azure Active Directory (Azure AD) 中的托管域是由 Microsoft 完全管理的基于云的 Active Directory 域。对于无法使用现代身份验证方法或需要使用本地环境中的传统应用程序且无需管理云中 AD DS 环境的场景,这非常有用。Update-AzADDomainService PowerShell cmdlet 允许您更新现有托管域的属性,例如域名、域控制器的 IP 地址、子网、域的功能级别等。

Azure PowerShell 语法

 已复制
Update-AzADDomainService
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-DomainConfigurationType <String>]
[-DomainName <String>]
[-DomainSecuritySettingNtlmV1 <NtlmV1>]
[-DomainSecuritySettingSyncKerberosPassword <SyncKerberosPasswords>]
[-DomainSecuritySettingSyncNtlmPassword <SyncNtlmPasswords>]
[-DomainSecuritySettingSyncOnPremPassword <SyncOnPremPasswords>]
[-DomainSecuritySettingTlsV1 <TlsV1>]
[-Etag <String>]
[-FilteredSync <FilteredSync>]
[-ForestTrust <IForestTrust[]>]
[-LdapSettingExternalAccess <ExternalAccess>]
[-LdapSettingLdaps <Ldaps>]
[-LdapSettingPfxCertificateInputFile <String>]
[-LdapSettingPfxCertificatePassword <SecureString>]
[-Location <String>]
[-NotificationSettingAdditionalRecipient <String[]>]
[-NotificationSettingNotifyDcAdmin <NotifyDcAdmins>]
[-NotificationSettingNotifyGlobalAdmin <NotifyGlobalAdmins>]
[-ReplicaSet <IReplicaSet[]>]
[-ResourceForest <String>]
[-Sku <String>]
[-Tag <String>]
[-DefaultProfile <String>]
[-AsJob]
[-NoWait]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
点击复制整个脚本

示例:

以下是用于更新现有托管域属性的示例脚本。在此示例中,我们将更新域名、域的 TLS V1 安全状态以及域的位置。

 已复制
Update-AzADDomainService -Name -DomainSecuritySettingTlsV1 -Location

其中 指您的域名, 指定的设置,取值为 True 或 False, 指定副本集的位置。

点击复制整个脚本

关于 ManageEngine ADManager Plus

ManageEngine ADManager Plus 是一款统一的 Active Directory (AD)、Microsoft 365、Exchange 和 Google Workspace 管理与报告解决方案。使用 ADManager Plus,您可以利用以下功能提升组织工作流程:

  • 针对 Azure AD 及其他目录服务(如 Active Directory 和 Google Workspace)的 360 度用户配置。
  • 预置报告,内置管理操作,提高管理员的工作效率。
  • 自动化例行任务,如过期组清理、大批量用户配置等。
  • 快速批量重置密码、解锁用户账户及创建自定义报告,无需 PowerShell 脚本。
  • 基于审批的 Azure AD 管理工作流。

欲了解有关 ADManager Plus 的更多信息,请点击 这里

统一的 Active Directory、Exchange 和 Microsoft 365 管理与报告解决方案

  获取 30 天免费试用。

开始您的 无脚本 AD 管理,报告和 自动化之旅 使用 ADManager Plus。

  •  
     
  • 提交即表示您同意根据 隐私政策 处理个人数据。

谢谢

您的下载将在 15 秒内自动开始。如未开始,点击此处手动下载。

相关 Powershell 操作指南:

Active Directory 管理和报告的一站式解决方案

电子邮件下载链接 Email the ADManager Plus download link