繁体   English   中英

Powershell Office365许可步骤说明

[英]Powershell Office365 licensing steps clarification

我试图了解为什么在尝试提供未经许可的测试用户时某些命令会失败。

尤其是,

$1 = "test-sp2@mycompany.org"
$a = Get-MsolUser -UserPrincipalName $1
$test = New-MsolLicenseOptions -AccountSkuId "mycompany:STANDARDWOFFPACK_FACULTY" -DisabledPlans @("PROJECTWORKMANAGEMENT","SWAY","INTUNE_O365","YAMMER_EDU","SHAREPOINTWAC_EDU","SHAREPOINTENTERPRISE_EDU")

Set-MsolUserLicense -UserPrincipalName $1 -LicenseOptions $test

Set-MsolUserLicense -UserPrincipalName $1 -AddLicenses "mycompany:STANDARDWOFFPACK_FACULTY" -LicenseOptions $test2

后2个失败,并带有Set-MsolUserLicense : Unable to assign this license because the license options are invalid.

用户是否需要安装带有“所有”产品的完整许可证,然后才能禁用您不希望拥有的产品? 似乎对我有帮助吗? 我想念什么?

这似乎仅对许可用户有效吗?

谢谢

我发现测试用户没有设置UsageLocation。 将其设置为美国后,以上所有命令均成功。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM