# 关闭 IT 注册

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


Set-ExecutionPolicy -ExecutionPolicy Bypass -Force

Install-Module MSOnline

Connect-MsolService

Set-MsolCompanySettings -AllowEmailVerifiedUsers $false -AllowAdHocSubscriptions $false

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