Automate profile creation
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Automate profile creation

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Clients
Author Message
Falconetti Daniel
Guest





Posted: Tue Oct 04, 2005 11:05 pm    Post subject: Automate profile creation Reply with quote

Hello,

I'm trying to automate the creation of a profile if none exists...
In previous versions we could use chkexchg, newprof and profgen.

In outlook 2002 and 2003 we can use /importprf

but I've got a problem with...
I'd like to run it only if no profiles exist
when I run it by double clicking on a bat file the cmd window stay open
until I close it or I close Windows

thanks for your help

--
Daniel Falconetti

Back to top
Sue Mosher [MVP-Outlook]
Guest





Posted: Wed Oct 05, 2005 12:02 am    Post subject: Re: Automate profile creation Reply with quote

Set registry keys to trigger Outlook to import the PRF file when Outlook starts. First, set the value ImportPRF to the location of the PRF file. For example:

HKCU\Software\Microsoft\Office\11.0\Outlook\Setup\ImportPRF=\\server1\share\Outlook.prf

Then, reset the Outlook FirstRun key to alert Outlook to process the PRF file. To do this, delete the FirstRun registry value HKCU\Software\Microsoft\Office\11.0\Outlook\Setup\FirstRun, or set its data to 0. Do the same with First-Run if present.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Falconetti Daniel" <daniel@nospamfalconetti.net> wrote in message news:%23ncjxyQyFHA.428@TK2MSFTNGP10.phx.gbl...
Quote:
Hello,

I'm trying to automate the creation of a profile if none exists...
In previous versions we could use chkexchg, newprof and profgen.

In outlook 2002 and 2003 we can use /importprf

but I've got a problem with...
I'd like to run it only if no profiles exist
when I run it by double clicking on a bat file the cmd window stay open
until I close it or I close Windows

thanks for your help

--
Daniel Falconetti

Back to top
Sue Mosher [MVP-Outlook]
Guest





Posted: Wed Oct 05, 2005 12:58 am    Post subject: Re: Automate profile creation Reply with quote

I would approach this by writing a procedure that the login script can invoke that looks to see whether the Windows Messaging Subsystem\Profiles key is not present or is empty. If that's the case, then it could add the ImportPRF registry value and point to your PRF file. That will set things up so that Outlook will create the profile the next time it runs.

I found WMI to be a good tool for working with the Profiles key. See http://www.outlookcode.com/codedetail.aspx?id=821 for one example (that does quite a bit more than your script might do).

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Falconetti Daniel" <daniel@nospamfalconetti.net> wrote in message news:eFRefZSyFHA.3720@TK2MSFTNGP11.phx.gbl...
Quote:
Thanks for your answer but I've still got one problem :
I found those registry settings in the ORK documentation but what I would
like to do is :
When user Logon, in the logon script check if there is an existing profile.
If yes I do nothing
If no I create the profile may be by modifying the registry settings you
mentionned
I don't want outlook to be run at this time.

But how can I check if a profile already exist or not?

Thks for your help

--
Daniel Falconetti
MCSE/MCT
www.falconetti.net
"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> a écrit dans le message
de news: eQqP5YRyFHA.3720@TK2MSFTNGP11.phx.gbl...
Set registry keys to trigger Outlook to import the PRF file when Outlook
starts. First, set the value ImportPRF to the location of the PRF file. For
example:

HKCU\Software\Microsoft\Office\11.0\Outlook\Setup\ImportPRF=\\server1\share\Outlook.prf

Then, reset the Outlook FirstRun key to alert Outlook to process the PRF
file. To do this, delete the FirstRun registry value
HKCU\Software\Microsoft\Office\11.0\Outlook\Setup\FirstRun, or set its data
to 0. Do the same with First-Run if present.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Falconetti Daniel" <daniel@nospamfalconetti.net> wrote in message
news:%23ncjxyQyFHA.428@TK2MSFTNGP10.phx.gbl...
Hello,

I'm trying to automate the creation of a profile if none exists...
In previous versions we could use chkexchg, newprof and profgen.

In outlook 2002 and 2003 we can use /importprf

but I've got a problem with...
I'd like to run it only if no profiles exist
when I run it by double clicking on a bat file the cmd window stay open
until I close it or I close Windows

thanks for your help

--
Daniel Falconetti





Back to top
Falconetti Daniel
Guest





Posted: Wed Oct 05, 2005 12:58 am    Post subject: Re: Automate profile creation Reply with quote

Thanks for your answer but I've still got one problem :
I found those registry settings in the ORK documentation but what I would
like to do is :
When user Logon, in the logon script check if there is an existing profile.
If yes I do nothing
If no I create the profile may be by modifying the registry settings you
mentionned
I don't want outlook to be run at this time.

But how can I check if a profile already exist or not?

Thks for your help

--
Daniel Falconetti
MCSE/MCT
www.falconetti.net
"Sue Mosher [MVP-Outlook]" <suemvp@outlookcode.com> a écrit dans le message
de news: eQqP5YRyFHA.3720@TK2MSFTNGP11.phx.gbl...
Set registry keys to trigger Outlook to import the PRF file when Outlook
starts. First, set the value ImportPRF to the location of the PRF file. For
example:

HKCU\Software\Microsoft\Office\11.0\Outlook\Setup\ImportPRF=\\server1\share\Outlook.prf

Then, reset the Outlook FirstRun key to alert Outlook to process the PRF
file. To do this, delete the FirstRun registry value
HKCU\Software\Microsoft\Office\11.0\Outlook\Setup\FirstRun, or set its data
to 0. Do the same with First-Run if present.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Falconetti Daniel" <daniel@nospamfalconetti.net> wrote in message
news:%23ncjxyQyFHA.428@TK2MSFTNGP10.phx.gbl...
Quote:
Hello,

I'm trying to automate the creation of a profile if none exists...
In previous versions we could use chkexchg, newprof and profgen.

In outlook 2002 and 2003 we can use /importprf

but I've got a problem with...
I'd like to run it only if no profiles exist
when I run it by double clicking on a bat file the cmd window stay open
until I close it or I close Windows

thanks for your help

--
Daniel Falconetti

Back to top
Daniel Tate
Guest





Posted: Wed Nov 16, 2005 8:10 am    Post subject: Re: Automate profile creation Reply with quote

Falconetti Daniel wrote:
Quote:
Hello,

I'm trying to automate the creation of a profile if none exists...
In previous versions we could use chkexchg, newprof and profgen.

In outlook 2002 and 2003 we can use /importprf

but I've got a problem with...
I'd like to run it only if no profiles exist
when I run it by double clicking on a bat file the cmd window stay open
until I close it or I close Windows

thanks for your help


I have a script that does this:

IF NOT EXIST C:\tokens\%username%.tok C:\MaintWiz.exe /c
"\\server\installs\Office Install\outlook.cmw" /qb-
echo 1 > C:\tokens\%username%.tok

You'll need to name that something.cmd and put it in startup or runonce.

Create a directory called C:\tokens
Use the Office maintenance wizard to create the .cmw file as needed.
Copy the maintwiz executable to the C:\ drive.

It's rube goldbergish, but due to some other limitations of this client
we needed to do it this way on a terminal server.



--
Sincerely,
Daniel S. Tate,
MCSA+Messaging,
Sun Certified Security, Network and Systems Administrator
Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Clients All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB