排除已填写的AD用户帐户属性 [英] Exclude filled in AD user account properties

查看:81
本文介绍了排除已填写的AD用户帐户属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个没有填写电话号码条目的用户列表。

I'm working on creating a list of users who's telephoneNumber entry hasn't been filled in.

我可以创建一个显示所有用户的列表"名称,telephoneNumber"但是这也会显示填写它的地方。

I can create a list of all users to show "Name,telephoneNumber" but that will also show the ones where it is filled in.

如何排除那些已填写电话号码的地方?

How can I exclude those where the telephoneNumber is already filled in?

推荐答案

  Get-Aduser -ldapfilter'(!(telephoneNumber = *))'


这篇关于排除已填写的AD用户帐户属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆