OK I am a beginner when it comes to PowerShell and only scripting experiencing I have had is from college so I am looking for some help/guidance if possible.
What am I doing?
I am creating a script that will create an AD user account and add to MS Exchange.
What I go so far?
I created 1 script that automatically adds the title, department, company attributes, add to distro groups.
What am I trying to accomplish?
I want the script to hold specific settings for different job functions for a new hire.
Example(s): User for Sales, User for Development, User for Customer Support, etc.
I am trying to figure out a way to have the script prompt me for a department the new hire will be assigned to. Once I make that selection it goes to the function that pertains to said department and adds the user to the necessary groups, etc.
Like I said I got one of them started and working just fine so I can add more for the other departments but what I really need to know is how to call that specific program/function.
Any help/guidance would greatly be appreciated!