Forum Discussion
Darth_Krim
Jan 11, 2022Copper Contributor
Odd behavior making a large number of folders in network share.
Hey everyone, This is my first post here and I'm really hoping for some insights. I've been beating my head against the wall for awhile trying to puzzle out why this code isn't working as intend...
Darth_Krim
Jan 11, 2022Copper Contributor
It turns out get-adgroupmember doesn't do well with a large group. I used a longer method to replace that cmdlet and it's doing it's thing. Hopefully this is beneficial to someone in the future.
(get-adgroup -properties members).members|get-aduser - properties samacountname