I have a script which creates users in Microsoft Exchange Server and Active Directory. So, though it’s commmon that user’s names have accents or ñ in Spain, I want to avoid them for the username to not to cause any incompatibilities in old systems.
So, how could I clean a string like this?
$name = "Ramón"
To be like that? :
$name = "Ramon"
Well I can help you with some of the code…..
I used this recently in a c# project to strip from email addresses:
I guess I can now say ‘extending into a PowerShell script/form is left to the reader’…. hope it helps….