使用Get-AzureAdUser是否有办法从源“Windows服务器广告”中撤回所有用户?

问题描述 投票:2回答:1

我有一个目录,其中有大约200万用户。我需要撤回来自本地AD的所有用户。这当然会排除多个源来宾用户。我必须使用source,因为并非所有用户都有usertype。

如果有一种方法来搜索不等于null的部门也可以工作,但它似乎不是odata过滤器标准的一部分。

Get-AzureADUser -Filter "Department eq ''"  | select DisplayName,`
    UserPrincipalName,Mail,creationType,AccountEnabled,Department
azure azure-active-directory azure-powershell
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.