powershell - 使用Powershell在Active Directory中基于说明的用户列表

标签 powershell active-directory

我基本上是PowerShell的新手。请问我需要在Get-ADUser -filter ..中执行什么操作,以拔出具有相同描述的用户?

最佳答案

Get-ADUser -Filter * -Properties Description | Select Name,Description | Sort Description 

您可以将另一个管道添加到Format-List或Format-Table或使用Export-CSV或Export-CliXML导出

关于powershell - 使用Powershell在Active Directory中基于说明的用户列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48117456/

相关文章:

php - 通过 PHP CLI 脚本运行 behat 会转义颜色代码

powershell - 根据日期字符串对PowerShell中的日志行进行过滤和排序

java - 用java连接微软Exchange服务器

active-directory - 在 Active Directory 中创建员工-经理关系

string - 使用 Powershell,如何在多行变量中找到特定行,然后找到该行中的第三个单词或值

powershell - 如何使用powershell将文件中版本列表的三位小数转换为两位小数

powershell - gci(获取子项)如何打印文件内容?

C# 将用户添加到 Active Directory - 指定给目录服务的属性语法无效

php - 无法通过与 php 的安全连接绑定(bind)到 LDAP 目录

memory-leaks - System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity 的奇怪问题