我有一些计算机列表,我需要这些计算机来查找特定的AD组成员身份并将其输出到csv。
如何从PS上执行此操作?
dependencies {
//for kotlin based projects (where $room_version is the version of room you're using)
kapt "android.arch.persistence.room:compiler:$room_version"
//for java based projects
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
}
谢谢
答案 0 :(得分:0)
您不是要查找用户组,而是要查找计算机。使用Get-ADPrincipalGroupMembership
是没有用的。
Get-Content .\ListOfComputer.txt | Get-ADComputer -properties Memberof
| Where-Object {$_.MemberOf -like "*Specific Word*"} | export-csv SpecificADGroupMembership.csv -Append