if you need to connect your user's to smtp and/or pop, here's the reg key's you wanna change. This small script will read the users outlook config setings, and apply the changes stated in the script. I've added a couple of extra's if you wanna 'remove deleted mail upon exit' & 'leave mail on server'. you can switch both of these 1/0. The xxx.xxx.xxx.xxx = your mail server IP address.
$Entry = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager", "Default Mail Account") WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\$ENTRY", "SMTP Server","xxx.xxx.xxx.xxx","REG_SZ") WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\$ENTRY", "POP3 Server","xxx.xxx.xxx.xxx","REG_SZ") WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\$ENTRY", "Leave Mail On Server","1","REG_DWORD") WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\$ENTRY", "Remove When Deleted","1","REG_DWORD")
hope its useful for some of yeh
|