PowerShell and ActiveDirectory module - Find Users that are not members of particular groups
- 阅读更多 关于 PowerShell and ActiveDirectory module - Find Users that are not members of particular groups
问题 In the last week, I have come across PowerShell and ActiveDirectory for the first time. I would like to be able to find a list of users that aren't Admins or Domain Admins. So far, I know how to get all the properties for all ActiveDirectory users with the following command/statement: Get-ADUser -Filter * -Properties * What I would like to do is to print out just the usernames of current ActiveDirectory users - that are not Admins or Domain Admins. Here is some pseudocode/Powershell code of