You could pass the script a flag which would depict what Privilege Set to use.
If ($flag = 1)
Add Account.... Privilege Set(User)
Else if ($flag = 2)
Add Account.... Privilege Set(Manager)
Yes but with 14 modules and 17 privilege sets by departmental function...yikes I have a lot of work to do! I was hoping that there was a faster way?
I have about 90 files, and 1 where I add/delete users. Those 90 files all have the same script in them, so I just had to open them and paste in the script.
You were right. It really didn't take as long as I thought that it would...thanks to copy & paste ability of Scriptmaker!
Next time round though I am definitely going to have to put more consideration into the external authenication route.