27 Ocak 2017 Cuma

How to list group member in specific OU

List Group Member
Get-ADGroupMember "G TEST" | where-object {$_.distinguishedname -like "*,OU=! AG,*"} | format-table name > C:\G_TEST.csv

List User
Get-ADUser       -Filter * | where-object {$_.distinguishedname -like "*,OU=! AG,*"} | format-table name > C:\AD_USER.csv

List Computer
Get-ADComputer   -Filter * | where-object {$_.distinguishedname -like "*,OU=! AG,*"} | format-table name > C:\AD_COMPUTER.csv

Hiç yorum yok:

Yorum Gönder

Problem MS SQL Server instances disappear from SQL Intelligent Policy and previously discovered Availability Groups (AG) in NetBackup. Cause...