当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] Set-MsolDomain - 更新 Office 365 中的域设置

作者:精品下载站 日期:2024-12-14 06:27:26 浏览:11 分类:玩电脑

Set-MsolDomain - 更新 Office 365 中的域设置


PowerShell 中的 Set-MsolDomain cmdlet 可修改 Microsoft Office 365 中的域设置。此命令可以更改默认域。

下面给出了更新 Azure Active Directory 中域设置的语法。

Set-MsolDomain
   [-Name <String>]
   [-IsDefault]
   [-TenantId <Guid>]
   [<CommonParameters>]

在本文中,我们将讨论如何使用 PowerShell 中的 Set-MsolDomain cmdlet 更新 Azure Active Directory 中的域设置。

如何将域设置为 Office 365 中的默认域

要将域设为 Office 365 中的默认域,请使用带有 -Name-IsDefault 参数的 Set-MsolDomain cmdlet。

-Name 参数用于指定域的名称,-IsDefault 参数表示该命令将该域设置为默认域。

Set-MsolDomain -Name "shellgeeklab.com" -IsDefault

此命令将“shellgeeklab.com”域设置为 Office 365 中的默认域。

结论

我希望上述有关如何使用 PowerShell 中的 Set-MsolDomain cmdlet 修改 Office 365 中的域设置的文章对您有所帮助。

您可以在 ShellGeek 主页上找到有关 PowerShell Active Directory 命令和 PowerShell 基础知识的更多主题。

相关链接

获取 MsolDomain

删除-MsolDomain

新MsolDomain

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯