Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将powershell查询转换为AD筛选器_Powershell_Active Directory - Fatal编程技术网

将powershell查询转换为AD筛选器

将powershell查询转换为AD筛选器,powershell,active-directory,Powershell,Active Directory,我正试图将以下内容翻译成广告过滤器,我不知所措,因为我完全不知道powershell,任何帮助都将不胜感激 Get-ADUser -Filter * -SearchBase "OU=Users and Groups,OU=11111,OU=STATE,DC=net,DC=ads,DC=state,DC=tn,DC=us" -Properties memberof | Select samaccountname, @{n='memberOf';e={$_.memberOf -join ';

我正试图将以下内容翻译成广告过滤器,我不知所措,因为我完全不知道powershell,任何帮助都将不胜感激

Get-ADUser -Filter * -SearchBase "OU=Users and Groups,OU=11111,OU=STATE,DC=net,DC=ads,DC=state,DC=tn,DC=us" -Properties memberof |
    Select samaccountname, @{n='memberOf';e={$_.memberOf -join '; '}} |
    Export-Csv c:\test.csv

“广告过滤器”是什么意思?是指用于查询所有用户的LDAP过滤器吗?这将是
(&(objectCategory=person)(objectClass=user))