Thanks for the code! Much appreciated.
Hmm I will test it out. With my prior code I cant get Outlook Express to stop asking for the password. It pops up asking for a password with a blank white little window. I will post my code asap.
My code is similar to this (my older version of code):
Code:
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "POP3 Server", "mail.xxxxxxxxx.com", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "SMTP Server", "mail.xxxxxxxxxx.com", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "POP3 Password2", "010247007200610064006500200035004600320044004600310032003700320030000000", "REG_BINARY")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "POP3 User Name", "$bpsgrade@xxxxx.com", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "SMTP Display Name", "Grade $bpsgrade", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "SMTP Email Address", "$bpsgrade@xxxx.xxxx.com", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "SMTP Organization Name", "xxxxxx Organisation", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "Account Name", "Grade $bpsgrade", "REG_SZ")
$RC = WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\$bpsgrade", "POP3 Prompt for Password", "0", "REG_DWORD")
The password part in reg is indentical to what occurs if I manually put in the password. I dont understand it. (ie: if I manually put password in it accepts it and remembers from then onwards with the same reg key as above (binary))