Automate Outlook Profile creation.

Support automating Outlook Profile creation


Command Line Options (v5.0)

The command line options supported by version 5.0 are listed below.

Argument Paramter  
s  <ServerName>  
m  <Mailbox Name>  
p  <Profile Name>  
a  <Delete Profile (Y/N)>  Y=delete profile if exists N=do not delete if exists
d  <Priority (D/P/N)>  D=make it the DEFAULT profile P=prompt for the default profile N=leave as is
c  <Cache Mode (0/1/2)>  0=Off 1=Private 2=Public
b  <PST Display> <PST Path>  eg. "MyMailbox" "c:\\mailboxfolder\\mymailbox.pst"
h  <Exhange HTTP Proxy URL>  eg. mail.richprofile.com
n  <FQ Principal Name>  eg. msstd:mail.richprofile.com
t  <Authentication (B/N)>  B=basic N=NTLM
f  <Connect via HTTP First (F/S/N)>  B=both, F=fast, S=slow, N=neither
r <Turns off first run>   
     

VBScript Example

Here is an example vbscript which you are free to use:

dim strProfileParam, strMailServer, strUser, RichProfile

Set RichShell = WScript.CreateObject("WScript.Shell")
Set RichNet = WScript.CreateObject("WScript.Network")

'username of local logged in user
strUser = RichNet.username
'msgbox struser

'name of mailserver
strMailServer="EXLONDON1.INTERNAL.COM"
'msgbox strMailServer


'Location to Richprofile, i.e on server or on local machine c:\windows\richprofile etc
RichProfile = "\\myserver\netlogon\tools\richprofile\richprofile.exe"
'msgbox RichProfile

'complete command parameter for RichProfile to use ( chr(34) is a speech mark, so should be either side of any value that may have spaces in it; eg mailbox name might be "Richard Coggins")
strProfileParam = " -s " & Chr(34) & strMailServer & Chr(34) & " -m " & Chr(34) & Lcase(strUser) & Chr(34) & " -p " & Chr(34) & Lcase(strUser) & Chr(34) & " -a " & Chr(34) & "N" & Chr(34) & " -d " & Chr(34) & "D" & Chr(34)

'comment this out after verifying values are populated correctly for command line.
msgbox richprofile & strprofileparam

RichShell.Run richprofile & strProfileParam,3,true

If you want to hide the command window within the vbscript then change the “3” to a zero.



About Us

Richard and George and began RichProfile back in 1999 when Richard, working as an Exchange administrator in London, could not find the tools to automatically configure outlook profiles intelligently. Since this version 1.0 RichProfile has been used within thousands of companies around the world and we have developed into MAPI experts.
Email Support...
Email Sales...

Links