c# - 如何检查设备是否已加入 AD 或 Azure AD 加入/注册?

标签 c# azure azure-active-directory

我需要检查我的设备是否已加入本地域或 Azure AD 加入/注册。如何检查这个?我试过NetGetJoinInformation并且无法获得 Azure AD 加入场景的任何内容。谁能指出我正确的方向?

最佳答案

I need to check if my device is local Domain Joined or Azure AD joined/registered. How to check this?

你可以从这个document得到答案.

To verify whether a device is joined to an Azure AD, you can review the Access work or school dialog on your device.

Alternatively, you can run the following command: dsregcmd /status On a successfully joined device, AzureAdJoined is Yes.

enter image description here

关于c# - 如何检查设备是否已加入 AD 或 Azure AD 加入/注册?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51816554/

相关文章:

powershell - 检索 Azure Active Directory 中 Azure 应用程序的创建日期

c# - 设置 Azure 跟踪日志记录开关 - 为什么在 2 个位置而不是 1 个位置?

c# - ASP.NET MVC 3 - Linq to SQL 对象存储在 session 中

azure - 如何自动启动和停止计算实例以执行 Azure 机器学习管道

azure - 如何将社交身份提供商按钮添加到 Azure B2C 中的 selfAsserted.html 页面

Azure Service Fabric MultiMachine Windows X509 群集 - 等待计算机 vm1 的安装程序服务完成时超时

c# - 如何计算只有起点和终点的贝塞尔曲线?

c# - 多个线程访问单个对象但在 C# 中没有数据争用

azure - 限制Azure DevOps Pipeline YAML中的并行作业数量

azure - 如何在服务主体 key 过期之前生成新凭据