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

[玩转系统] New-MsolLicenseOptions - 在 Office 365 中创建许可证选项对象

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

New-MsolLicenseOptions - 在 Office 365 中创建许可证选项对象


PowerShell 中的 New-MsolLicenseOptions cmdlet 在 Microsoft Office 365 中创建许可证选项对象。当您使用 Set-MsolUserLicense cmdlet 为用户分配许可证时,此命令会禁用特定服务计划。

下面给出了在 Azure Active Directory 中创建许可证选项对象的语法。

New-MsolLicenseOptions
   -AccountSkuId <String>
   [-DisabledPlans <System.Collections.Generic.List`1[System.String]>]
   [<CommonParameters>]

在本文中,我们将讨论如何在 PowerShell 中使用 New-MsolLicenseOptions cmdlet 禁用特定服务计划。

如何创建许可证选项对象

要在 Office 365 中创建许可证选项对象,请使用带有 -AccountSkuId-DisabledPlans 参数的 New-MsolLicenseOptions cmdlet。

-AccountSkuId 参数指定许可证或帐户 SKU ID。 -DisabledPlans 参数指定将此许可证分配给用户时要禁用的服务计划列表。

New-MsolLicenseOptions -AccountSkuId shellgeeklab:ENTERPRISEPACK -DisabledPlans SWAY,Deskless

此命令创建一个许可证选项对象。在 New-MsolUserSet-MsolUserLicense cmdlet 中为用户分配许可证时,此对象可用于禁用服务计划。

[玩转系统] New-MsolLicenseOptions - 在 Office 365 中创建许可证选项对象

结论

我希望上述有关如何在 PowerShell 中使用 New-MsolLicenseOptions cmdlet 创建许可证选项对象的文章对您有所帮助。

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

相关链接

新MsolUser

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

取消回复欢迎 发表评论:

关灯