简体   繁体   English

如何使用PowerShell将Microsoft帐户添加到Azure AD?

[英]How do i add Microsoft Accounts to my Azure AD using PowerShell?

I can add new users to my AD using Command: 我可以使用Command将新用户添加到我的广告中:

New-MsolUser -UserPrincipalName $signInAddress -FirstName $firstName -LastName $lastName -DisplayName $displayname -Title $title

but it requires the UPN to be in my AD domain. 但它要求UPN在我的AD域中。

I see related questions about adding accounts from other Azure AD (and currently that is not supported). 我看到有关从其他Azure AD添加帐户的相关问题(当前不支持)。

Henrik, Azure AD PowerShell doesn't support adding Microsoft Accounts to the directory. Henrik,Azure AD PowerShell不支持将Microsoft帐户添加到目录中。 It can only be done using the Azure Management portal. 只能使用Azure管理门户来完成。

暂无
暂无

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

相关问题 Azure 使用 powershell 为多租户和个人帐户注册 AD 应用程序 - Azure AD App Registration for Multi tenant and Personal accounts using powershell 如何设置将AD组添加到域中的PC /用户帐户的PowerShell脚本? - How do I set up a PowerShell script adding AD groups to PCs/user accounts in domain? PowerShell - 如何使用 ADSI 和备用凭据将用户添加到 AD 用户组 - PowerShell - How do I add a User to an AD User Group using ADSI and alternate credentials 如何在我的 Azure Z86408593C34AF726FDD9 应用程序中的 PowerShell 脚本中获取 Azure AD 用户列表 - How can I get a list of Azure AD Users in my PowerShell script within my Azure Function App? 与Microsoft Azure AD模块PowerShell和Microsoft Azure Powershell的不同 - Different with Microsoft Azure AD Module PowerShell and Microsoft Azure Powershell 如何使用 PowerShell 为 Azure-AD 设备对象添加扩展属性? - How to add Extension Properties for Azure-AD Device Objects using PowerShell? 如何将Microsoft帐户添加到Azure Active Directory? - How do I add a Microsoft account to Azure Active Directory? 如何使用 powershell 从我的办公室桌面远程重启 Azure VM 上的 windows 服务? - How do I restart a windows service on an Azure VM remotely from my office desktop using powershell? 使用Azure Powershell或xpat cli如何将网站连接到github挂钩 - Using Azure Powershell or the xpat cli how do I connect my web site to a github hook 如何在hdinsight群集上的Azure Powershell中执行此命令? - How do I perform this command in azure powershell on my hdinsight cluster?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM