I'm trying to write a PS script to make it easier to find accounts by simply adding in the Identity of the user.
The idea is to allow other S4B admins to grant recording policy for users with a basic powershell script. SOme of our admins don't know anything about PS and i'm must learning myself.
I have this code that I use - Get-csuser -Identity "email here" |Grant-CsConferencingPolicy -PolicyName "AllowRecording"
What i'm looking to do, but have yet to find in my google searching, is a way to prompt for the Identity. So the other admins will run the script, a prompt in PS will say something like Email address of User: They'll add the email, hit enter, and the policy will be granted by the script.
That's where i'm stuck. How do i get the prompt, and get that input added into the script to grant the policy?