Howdy
I am working on a PowerShell report of user names, First, Last, and their phone number populated in AD.
But the request is to take out the area code. That's not something I've done before, can anyone help me with how to do that? I'm wondering what happens if the user doesn't have an area code entered in terms of how a script will determine that.
I think it will be some code to pull of the first 3 digits, but then I'm not sure if I can put something in that would prevent it from ding that if the number is only 7 digits long?