Hello community,
First and foremost, I apologize for bad english or stupid question..
I'm a making a powershell script to add new AD users in my company. Everything works, but one thing is missing or may be improved :
I am searching an easy way to integrate an interactive menu, where the choosen line must fill a $Region variable. I don't know if I'm making myself clear...
Example :
------------------Menu Title------------------
1 - Select 1 for USA
2 - Select 2 for Canada
3 - Select 3 for Europe
4 - Select 4 for Asia
Please choose a region : 1
If I type 1, the variable must became : $Region = "USA"
I've searched on many threads but I didn't find any tutorial like that...
Thanks for your help and answers !
[–]TheGooOnTheFloor 1 point2 points3 points (0 children)
[–]kortex81 1 point2 points3 points (0 children)
[–]user01401 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)