modify a account with a vbs script

N

NT

hello

we change our domain and so ihave 200 mails account to modify

users use outlook express (xp computer) or winmail (vista computer)

i made a script for my users who check the mail adress in the AD and modify
their adress locally

it works great for outlook express, but it doesn't for winmail, and i didn't
found a solution for

here is, the code if someone can give me a solution to do the same for
winmail client, thanks

code:
' part 1
On Error Resume Next
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)
email = objUser.mail

set WshShell = WScript.CreateObject("WScript.Shell")
valeurlue = WshShell.regRead ("HKCU\Software\Microsoft\Internet Account
Manager\Default Mail Account")
clea ="HKCU\Software\Microsoft\Internet Account Manager\Accounts\"
clepop=clea&valeurlue&"\POP3 User Name"
WshShell.RegWrite clepop,email,"REG_SZ"
clesmtpa=clea&valeurlue&"\SMTP Email Address"
WshShell.RegWrite clesmtpa,email,"REG_SZ"
Wscript.echo "ok"

end of the code
 
G

George Yin

Hello,

Additionally, I would highly suggest that you post this in our MSDN forum.
People there have better knowledge on codes and scripts related issues.
They may help you to change the codes to achieve what you want and they may
share some useful information with you.

http://forums.microsoft.com/msdn

Thank you for your cooperation and I hope this will be resolved soon.

Sincerely,
George Yin
Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steve Cochran

That was a useless post. Just telling someone to post in another forum
isn't going to help their situation. I already pointed them to the right
direction.

steve
 
N

NT

hello

thanks for thoses informations, after reading the article i think i have no
solution (with my script knowledge) to modify winmail with a vbs script
.......

so if someone have a idee until the 11/12 even if i will do it with my 2
hands :)

thanks nicolas
 
S

Steve Cochran

You should only need to modify / create an xml file for the account and put
it in the message store directory. The user would still have to enter a
password however, because that is stored as an encrypted value that is
encoded on a per Windows user basis.

steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top