gcue Posted March 17, 2022 Posted March 17, 2022 hello world! not looking for a script - just advice on how to approach this task: 1. get the members of an AD group (~1,000 users) - (members always changing) 2. get a list of ad groups (1,500) (list always changing) 3. check if users in #1 are members of each of the ad groups in #2 4. ability to exclude an AD group from item #2 here's what I'm thinking... store the users of #1 in a separate USERS table store items for #4 in a separate EXLCUDE_AD_GROUP table store the members of each group in #2 in sqlite for subsequent user checks? (to speed up repeated checks for 1000 users the same ad group (x1500) ) can sqlite hold several hundred members per record? appreciate your advice!
spudw2k Posted March 23, 2022 Posted March 23, 2022 Since it seems you are particularly interested in if a user in AD group (from #1) are members of groups (from #2), perhaps you could just get get the memberof for each user, then cross reference with the groups (from #2), instead of enumerating each group to see if users are members. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
gcue Posted March 25, 2022 Author Posted March 25, 2022 great idea - that would definitely work much faster thank you!!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now