Azure AD V2 PowerShell - 排除输出中的属性

时间:2017-10-16 08:52:12

标签: powershell azure azure-active-directory

我正在使用Azure AD V2 Powershell模块,并希望为B2C租户创建一个非常快速的用户/组/成员报告。

如何将输出中的ObjectId排除到从以下powershell代码生成的文件中?

Get-AzureADGroup | Out-File -filepath $outputFilePath -Append

1 个答案:

答案 0 :(得分:1)

您正在查找-ExcludeProperty cmdlet中的Select-Object参数:

Get-AzureADGroup | 
Select-Object * -ExcludeProperty ObjectId |
Out-File -filepath $outputFilePath -Append