hi friends,
\ni am not good in powershell and i need a help
\nin our active directory there are a lot of users which are a members in Groups,<\/p>\n
i need to list the users which are just members in these groups together grp1 and grp2<\/p>\n
Example:
\n(user1 is member in domain users group, grp1 )
\n(user2 is a member in domain users group, grp1 and grp2)
\nin the output of the script i have to see just the user2
\nbecause user2 is member f grp1 and grp2 together
\ncan you help with a script please<\/p>","upvoteCount":8,"answerCount":7,"datePublished":"2019-04-14T16:20:37.000Z","author":{"@type":"Person","name":"spiceuser-ckli5","url":"https://community.spiceworks.com/u/spiceuser-ckli5"},"suggestedAnswer":[{"@type":"Answer","text":"
hi friends,
\ni am not good in powershell and i need a help
\nin our active directory there are a lot of users which are a members in Groups,<\/p>\n
i need to list the users which are just members in these groups together grp1 and grp2<\/p>\n
Example:
\n(user1 is member in domain users group, grp1 )
\n(user2 is a member in domain users group, grp1 and grp2)
\nin the output of the script i have to see just the user2
\nbecause user2 is member f grp1 and grp2 together
\ncan you help with a script please<\/p>","upvoteCount":8,"datePublished":"2019-04-14T16:20:37.000Z","url":"https://community.spiceworks.com/t/help-in-powershell/707326/1","author":{"@type":"Person","name":"spiceuser-ckli5","url":"https://community.spiceworks.com/u/spiceuser-ckli5"}},{"@type":"Answer","text":"
How far have you come. Even if you only have one or 2 lines of code just post it using the <> code button. It’ll look better. Like this it gives some the feeling they are doing your homework. Don’t feel shy if the code is full of bugs. We all had to start from zero and we too made horrible mistakes and we too got facepalmed for it.
\nWe’re here to help and guide but it’s not fun to write complete solutions for others. That way you also won’t learn from it <\/p>","upvoteCount":5,"datePublished":"2019-04-14T18:04:23.000Z","url":"https://community.spiceworks.com/t/help-in-powershell/707326/2","author":{"@type":"Person","name":"edwineekelaers2","url":"https://community.spiceworks.com/u/edwineekelaers2"}},{"@type":"Answer","text":"
Post your current code, please. We’ll help you build on to it.<\/p>","upvoteCount":4,"datePublished":"2019-04-14T18:36:32.000Z","url":"https://community.spiceworks.com/t/help-in-powershell/707326/3","author":{"@type":"Person","name":"bbigford","url":"https://community.spiceworks.com/u/bbigford"}},{"@type":"Answer","text":"
Cpuld you not export the list from within AD the use a filter in excel?<\/p>","upvoteCount":0,"datePublished":"2019-04-15T04:33:48.000Z","url":"https://community.spiceworks.com/t/help-in-powershell/707326/4","author":{"@type":"Person","name":"culesflatlander","url":"https://community.spiceworks.com/u/culesflatlander"}},{"@type":"Answer","text":"
OP read this and try. Do not forget to import the active directory module in powershell first or the commands won’t be recognised.<\/p>\n