Wanting to basically have “options” within a script. If a user is a member of a specific OU (based on their distinguished name) do this task. If they are a member of another OU, do a separate (but nearly identical thing).
I’ve seen some mention using an ElseIf combination but I’ve seen elsewhere that people suggest using Switches. I’m honestly not super familiar with loops and even less so with switches. Anyone have any input/suggestions?
Basic idea: If OU = ABC then grab attribute value and place it in ABCtxt document else If OU = DEF then grab attribute value and place it in DEFtxt document else If OU = JKL then grab attribute value and place it in JKLtxt document