For Loop nightmare

Welcome Forums General PowerShell Q&A For Loop nightmare

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 7 years ago.

  • Author
  • #5344

    Points: 0
    Rank: Member

    by rstebbings at 2012-12-12 12:39:16


    Im having a nightmare trying to work out how to do the following;

    I have a list of users that are to be migrated at a given time and I need to check if they have access to an number of applications – these applications are controlled by group membership – eg 100 users

    I also have a list of users that I am told all have the required group membership to these apps – eg 25

    Out of that 25 maybe only 10 have the required group/s to access the app, but the other 75 may also have access but are not in the list.

    What I need to know if how to search the list of 100 users and outputting there names to a file

    I currently have 3 nested for loops trying to loop through arrays to achieve this (code on work pc and cant be accessed) – and help/advise would be appreciated.

    by nohandle at 2012-12-13 03:37:59

    Frankly I don't get what you ask for.
    you have 100 users and want to check which of these are in list of 25 users that are allowed to access an app?
    If I am totally wrong, please review your description and try to explain it more precisely (naming the lists for example would greatly help.)

    by rstebbings at 2012-12-13 13:07:45

    solved it myself

    by nohandle at 2012-12-13 15:04:26

    mark the thread as solved by the Solved button please 🙂

The topic ‘For Loop nightmare’ is closed to new replies.