powershell - Powershell:如何从 Azure Active Directory 用户 (Get-AzADUser) 获取名称
问题描述
很简单的问题。我想从 Azure 的 Active Directory 中获取用户 john@doe.com 的名称。为此我使用了
$user = Get-AzADUser -UserPrincipalName "john@doe.com"
我现在该怎么办$user
?根据微软的文档Get-AzADUser 返回一个 Microsoft.Azure.Commands.ActiveDirectory.PSADUser 对象。但是,Microsoft 无法链接到 PSADUser 的文档,我找不到。尝试通过键入来查看内容
$user
产量
Microsoft.Azure.Commands.ActiveDirectory.PSADUser
那么我现在如何才能看到这个对象内部的内容呢?还是我应该考虑一种完全不同的方法?