Ben Hart
asked on
powershell script help - filter get-distributiongroup
I need to bulk modify around 75 distribution groups.. on many we have the flags attribute set with a 1. I'd like to get-distributiongroup with a filter pulling all the DL's with that flags=1, then Set them all with a modification to the Notes: field adding the words 'no sync'.
My hangup so far is filtering based on that specific attribute and what type of array to load them into.
My hangup so far is filtering based on that specific attribute and what type of array to load them into.
ASKER
Running the get-adgroup line alone to judge the results.. I get nothing returned.
Should I specify the OU to run against?
get-Adgroup -Filter * | ? {$_.Flags -eq "1"}
Should I specify the OU to run against?
Missing -properties *
Get-adgroup -filter * -properties * | ?
Get-adgroup -filter * -properties * | ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window