Remove-Diacritics

Hi guys,
it is easy write Powershell script to create users based on the settings in CSV file. Much more difficult is naming convention for logon names. Few month ago I found pretty little function to remove diacritics from string. It is really easy to use this function:


$newString = Remove-Diacritics ("ěščřžžřýí")
or
Write-host (Remove-Diacritics("ěščřžřžý"))



Komentáře

Populární příspěvky z tohoto blogu

Disable Lync accounts for users disabled in AD

Copy Group Membership to another user

Lync 2013 Persistent Chat Service not starting