Simple script to convert IMCEAEX to X500 Address.
1 2 3 4 5 6 7 8 9 10 11 |
$IMCEAEX = Read-Host -Prompt “Enter IMCEAEX string to convert to X500” $IMCEAEX = $IMCEAEX -replace ‘_’, ‘/’ $IMCEAEX = $IMCEAEX -replace ‘\+20’, ‘ ‘ $IMCEAEX = $IMCEAEX -replace ‘\+28’, ‘(‘ $IMCEAEX = $IMCEAEX -replace ‘\+29’, ‘)’ $IMCEAEX = $IMCEAEX -replace ‘\+2E’, ‘.’ $IMCEAEX = $IMCEAEX -replace ‘IMCEAEX-‘, ” $IMCEAEXNew = $IMCEAEX -split (‘@’) $IMCEAEX = $IMCEAEXNew[0] $IMCEAEX = ‘X500:’ + $IMCEAEX write-host $IMCEAEX |
testest test