azure - 您能否找到将计算机加入 Azure AD 的帐户名称?

标签 azure powershell azure-active-directory

Get-AzureADAuditDirectoryLogs -Filter "activityDisplayName eq 'Register device' " | where-object Category -eq "Device"

它带回了这个

ActivityDateTime.DateTime
InitiatedBy.User.UserPrincipalName  

我的问题是 InitiatedBy.User.UserPrincipleName 我不认为是实际将设备加入域的帐户?

有人可以确认该值是实际加入域的帐户吗?或者只是注册设备的用户?

如果只是用户 - 是否有其他方法可以找到将设备加入域的实际用户帐户?

最佳答案

检查您是否在门户中启用了设备设置,如下所示:

enter image description here

如果是这种情况,用户可以将设备注册并加入 Azure AD。那么注册设备的用户和加入设备的用户将是相同的。

我通过选择以下选项以用户身份登录将设备加入到 Azure AD:

enter image description here

加入Azure AD后,显示如下:

enter image description here

因此,当我运行以下命令时,它显示注册用户详细信息,因为两者相同

Get-AzureADAuditDirectoryLogs -Filter "activityDisplayName eq 'Register device' " | where-object Category -eq "Device"

回应:

enter image description here

或者,您可以运行以下命令,其中注册设备的用户帐户将成为该设备的所有者<强>默认

Get-AzureADDeviceRegisteredOwner -ObjectId Device_ObjectID

回应:

enter image description here

关于azure - 您能否找到将计算机加入 Azure AD 的帐户名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73900706/

相关文章:

javascript - Azure 帐户共享访问签名

powershell - 删除 PowerShell 脚本模块时如何运行自定义方法(自行清理)

powershell - 通过 startprocess 执行脚本 block

powershell - 方法调用失败的方法命名项目

c# - 如何使用 Azure 代理 AD 和 ADAL 在 SharePoint On Prem 上进行身份验证?

c# - 将 Azure AD 与 Identity Core (ASP.NET Core 2.1) 一起用作外部登录时无法获取用户组声明

azure - 如何在标准 Azure 网站实例上托管多个网站,这是 Web 托管计划吗?

node.js - 在哪里查看Azure Function App的日志

c# - 使用 Azure Active Directory 的 Blazor Server 聊天应用程序在 Program.cs 中产生异常

java - 如何实现 azure 服务总线队列触发器/存储连接错误