Use powershell with Global Admin rights Install-Module MSOnline Connect-MsolService Set-MsolCompanySettings -AllowAdHocSubscriptions $false

Use powershell with Global Admin rights Install-Module MSOnline Connect-MsolService Set-MsolCompanySettings -AllowAdHocSubscriptions $false