Get ADUser Properties
2016-02-01 20:09
447 查看
from: https://richardspowershellblog.wordpress.com/2013/08/26/get-aduser-and-properties/
Get-AdUser and –properties
Posted on Monday 26 August 2013by richardsiddawayThe Get-ADuser cmdlet returns a small subset of properties by default:
PS> Get-ADUser -Identity Richard
DistinguishedName : CN=Richard,CN=Users,DC=Manticore,DC=org
Enabled : True
GivenName : Richard
Name : Richard
ObjectClass : user
ObjectGUID : b94a5255-28d0-4f91-ae0f-4c853ab92520
SamAccountName : Richard
SID : S-1-5-21-3881460461-1879668979-35955009-1104
Surname :
UserPrincipalName : Richard@Manticore.org
You can use the –Properties parameter to return more properties
Get-ADUser -Identity Richard -Properties *
returns all properties
You can select a subset of properties by specifying their names
Get-ADUser -Identity Richard -Properties MemberOf, Country
If you want to use wildcards you need to use select
Get-ADUser -Identity Richard -Properties * | select last*
相关文章推荐
- PowerShell打开或关闭光驱
- PowerShell移动目录中指定文件的方法(非全部文件)
- Powershell小技巧之创建短网址
- PowerShell实现查询打开某个文件的默认应用程序
- PowerShell设置文件只读、隐藏属性的方法
- Windows Powershell扩展类型系统
- PowerShell脚本源码输出到文件的最佳写法
- Windows Powershell 通过函数扩展别名
- PowerShell脚本实现创建桌面快捷方式的方法
- PowerShell重启服务命令Restart-Service详细介绍
- PowerShell中执行Javascript的方法示例
- 探索PowerShell(十三) WMI对象介绍
- Powershell小技巧之使用Copy-Item添加程序到开机启动
- Windows Powershell创建对象
- Windows Powershell 访问数组
- Powershell小技巧之使用WS-Man来调用PowerShell命令
- PowerShell在控制台输出特殊符号的方法
- Windows Powershell使用哈希表
- PowerShell实现的文件同步脚本分享
- PowerShell中使用通配符匹配文件路径的例子