Prev: Find a unused drive letter
Next: Diff in running VBScripts-WMI routuines from WinTaskSch & SQL Agen
From: iTWeb on 17 Mar 2010 23:58 Hi all, I made a vbs to add an extra e-maill address to a distribution list group. The e-mail address should be <group name>@dnv.com. As we are a Norwegian company, the group name sometimes contains Norwegian character such as "Ø". When I look into ADSI, the string with "Ø" do updates in "mail" attribute. But if I want to send e-mail to this distribution goup, error will report that "The format of the e-mail address is incorrect". I found if I manually create the e-mail address, the system will automatically convert "Ø" to "O". But will not if using script. Is there any method that I can solve this issue? Thanks very much in advanced.
From: Richard Mueller [MVP] on 18 Mar 2010 11:42 "iTWeb" <iTWeb(a)discussions.microsoft.com> wrote in message news:0FCDFB85-58EE-4B7C-ACD5-166D642D6448(a)microsoft.com... > Hi all, > > I made a vbs to add an extra e-maill address to a distribution list group. > The e-mail address should be <group name>@dnv.com. > > As we are a Norwegian company, the group name sometimes contains Norwegian > character such as "�". > > When I look into ADSI, the string with "�" do updates in "mail" attribute. > But if I want to send e-mail to this distribution goup, error will report > that "The format of the e-mail address is incorrect". > > I found if I manually create the e-mail address, the system will > automatically convert "�" to "O". But will not if using script. > > Is there any method that I can solve this issue? > > Thanks very much in advanced. You can use the ldifde utility to update attributes with values that are Base64 encoded. I have example VBScript programs to Base64 encode strings linked here: http://www.rlmueller.net/Base64.htm I have limited experience with foreign characters, but if you can convert the desired value into a hexadecimal string, you can use the first program to get the Base64 encoded value, then use this with ldifde to update an attribute. Or if you can supply the text string, you can use the second program on the page. There are example ldif files with base64 encoded values in this link: http://msdn.microsoft.com/en-us/library/ms677268(VS.85).aspx You may need to check help for the ldifde command to create the input ldif file for the utility. I hope this helps. -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net --
From: LikeToCode on 18 Mar 2010 12:26 you could use the Replace method to search each new email address and replace the "Ø" with a "O". Replace(strEmail,"Ø","O")
|
Pages: 1 Prev: Find a unused drive letter Next: Diff in running VBScripts-WMI routuines from WinTaskSch & SQL Agen |