Interactive AD Script

Job ID: 31977067

Budget: £10 – £15 GBP

Hi Guys,

I am trying to build an Interactive AD Menu script so that I can complete day to day task within my role.

I am struggling with the switch process and how it connects to the menu system.

I am struggling to seperate the questions that need to be asked when I run certain AD commands.

So for example, if you select option 1, it will ask you for a username and store it within the varible $CopyFrom. When this varible get's called it reads out a text which displays to the user.

This works perfectly fine, but I am having issues with stopping it from coming up when selection other options.

So at the moment when I select option 4, it reads out the $CopyFrom varible.

I have been trying for ages to get a user to select something from the menu and it read out instructions on what to do with the command.

Hopefully all of this makes sense.

I have labled the code and seperated it, so it makes sense to you all.

Thank you.
Justin-Leslie
Related categories: Powershell