I got this from the list: on error resume next Set oShell = WScript.CreateObject("WScript.Shell") ' Don't run if profile has already been created oShell.RegRead "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\DefaultProfile" if err.number <> 0 then oShell.RegDelete "HKCU\Software\Microsoft\Office\11.0\Outlook\setup\First-Run" oShell.RegWrite "HKCU\Software\Microsoft\Office\11.0\Outlook\setup\importPRF","c:\windows\outlook.prf", "REG_SZ" oShell.RegWrite "HKCU\Software\Microsoft\Office\11.0\Outlook\UserData","1","REG_DWORD" set oOutlook=CreateObject("Outlook.Application") set oNS=oOUtlook.GetNamespace("MAPI") set oFolder=oNS.GetDefaultFolder(olFolderInbox) end if -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Malcolm Bruton Sent: Thursday, September 06, 2007 12:00 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: "Pre-Create" Office 2003 Profiles Can't be done unless you use a third party or script it. We run outlook with the importprf switch and hide the lauching of outllook. Then after the profile exixts we kill outlook. If user has allready run outlook our script does not try and recreate the profile. The best fix is outlook 2007 and exchange 2007 where all this rubbish finally goes away. -----Original Message----- From: "Bob Coffman - Info From Data Corp." <bcoffman@xxxxxxxxxxxxxxxx> To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx> Sent: 06/09/07 17:31 Subject: [THIN] "Pre-Create" Office 2003 Profiles I'm looking for a method to create Outlook 2003 profiles without launching Outlook. I've got a .PRF file that works perfectly fine and dandy, as long as I run Outlook. But I have an app that assumes an Outlook profile exists when attempting to send, and when it is run as a published app, with a user that doesn't have an Outlook profile, the .PRF file isn't read and they get the no email profile error. The profile wizard looks like the way to do this in 2003 but it seems to be user specific. I don't know if there is a way to create a generic .OPS file similar to (or based on) the .PRF file I have. What I'm looking for is a way to silently build a profile a la profgen/modprof. Can it be done? Thanks - Bob Coffman ************************************************ For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: //www.freelists.org/list/thin ************************************************ ************************************************ For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: //www.freelists.org/list/thin ************************************************