llain3000
asked on
Windows 2000 Logon script w/ automatic OE configuration
I have about 50 client machines connected to a samba 3 server using domain/roaming profiles and a logon script to set the time and map drives.
Im having a slight problem with the script when trying to setup users email accounts ( the email server is hosted on the samba3 server also ). When the user logs in for the first time i have a registry file that runs itself and sets a user up with his/her email address automatically in outlook express. The problem is the %USERNAME% varibale will not work and outlook express has %USERNAME%@server.mydomain .com instead of the acutal user that is logged into the domain. Thus their email account will not work.
Is there an easier way of automatically setting up email accounts when the user logs into the domain ? If not whats the problem with the reg file below ?
thanks,
llain3000
REGEDIT4
[HKEY_CURRENT_USER\Softwar e\Microsof t\Internet Account Manager\Accounts\info@serv er.mydomai n.com]
"DCEmail"=dword:00000002
"POP3 Server"="server.mydomain.c om"
"POP3 Port"=dword:0000006e
"SMTP Server"="server.mydomain.c om"
"SMTP Port"=dword:00000019
"Connection Type"=dword:00000001
"POP3 User Name"="%USERNAME%@server.m ydomain.co m"
"SMTP Display Name"="%USERNAME%@server.m ydomain.co m"
"SMTP Email Address"="%USERNAME%@serve r.mydomain .com"
"SMTP Reply To Email Address"="%USERNAME%@serve r.mydomain .com"
"SMTP Organization Name"=""
"Account Name"="%USERNAME%@server.m ydomain.co m"
"POP3 Timeout"=dword:0000003c
"SMTP Timeout"=dword:0000003c
"POP3 Secure Connection"=dword:00000000
"Leave Mail On Server"=dword:00000000
"POP3 Skip Account"=dword:00000000
"POP3 Prompt for Password"=dword:00000000
"SMTP User Name"="%USERNAME%@server.m ydomain.co m
"SMTP Use Sicily"=dword:00000003
"SMTP Secure Connection"=dword:00000000
"SMTP Split Messages"=dword:00000000
"SMTP Prompt for Password"=dword:00000000
Im having a slight problem with the script when trying to setup users email accounts ( the email server is hosted on the samba3 server also ). When the user logs in for the first time i have a registry file that runs itself and sets a user up with his/her email address automatically in outlook express. The problem is the %USERNAME% varibale will not work and outlook express has %USERNAME%@server.mydomain
Is there an easier way of automatically setting up email accounts when the user logs into the domain ? If not whats the problem with the reg file below ?
thanks,
llain3000
REGEDIT4
[HKEY_CURRENT_USER\Softwar
"DCEmail"=dword:00000002
"POP3 Server"="server.mydomain.c
"POP3 Port"=dword:0000006e
"SMTP Server"="server.mydomain.c
"SMTP Port"=dword:00000019
"Connection Type"=dword:00000001
"POP3 User Name"="%USERNAME%@server.m
"SMTP Display Name"="%USERNAME%@server.m
"SMTP Email Address"="%USERNAME%@serve
"SMTP Reply To Email Address"="%USERNAME%@serve
"SMTP Organization Name"=""
"Account Name"="%USERNAME%@server.m
"POP3 Timeout"=dword:0000003c
"SMTP Timeout"=dword:0000003c
"POP3 Secure Connection"=dword:00000000
"Leave Mail On Server"=dword:00000000
"POP3 Skip Account"=dword:00000000
"POP3 Prompt for Password"=dword:00000000
"SMTP User Name"="%USERNAME%@server.m
"SMTP Use Sicily"=dword:00000003
"SMTP Secure Connection"=dword:00000000
"SMTP Split Messages"=dword:00000000
"SMTP Prompt for Password"=dword:00000000
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Worked perfectly. 50 extra points for having the solution sitting at my desk when i arrived in work :)
del %systemroot%/Email.reg
just to cleanup.