Microsoft 365 / Office 365 A1 / A1P / A3全局关闭IT注册

关闭 IT 注册

#【以管理员身份运行】PowerShell

Set-ExecutionPolicy -ExecutionPolicy Bypass -Force
Install-Module MSOnline
Connect-MsolService
Set-MsolCompanySettings -AllowEmailVerifiedUsers $false -AllowAdHocSubscriptions $false

官方文档:

https://docs.microsoft.com/zh-cn/microsoft-365/education/deploy/office-365-education-self-sign-up#how-can-i-prevent-students-from-joining-my-existing-office-365-tenant

或者使用winvps.eu的文章做法:

关闭 Microsoft 365 / Office 365 A1 / A1P / A3 自助注册子号

# 关闭 Microsoft 365 / Office 365 A1 / A1P / A3 自助注册子号
Connect-MsolService
Set-MsolCompanySettings -AllowEmailVerifiedUsers $false -AllowAdHocSubscriptions $false

开启 Microsoft 365 / Office 365 A1 / A1P / A3 自助注册子号

# 开启 Microsoft 365 / Office 365 A1 / A1P / A3 自助注册子号
Connect-MsolService
Set-MsolCompanySettings -AllowEmailVerifiedUsers $true -AllowAdHocSubscriptions $true

参考文章:

官方文档:

https://docs.microsoft.com/zh-cn/microsoft-365/enterprise/connect-to-microsoft-365-powershell?view=o365-worldwide#connect-with-the-azure-active-directory-powershell-for-graph-module

https://docs.microsoft.com/zh-cn/azure/active-directory/enterprise-users/directory-self-service-signup

© 版权声明
THE END
喜欢就支持以下吧
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容